Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const makeTest = (
fn: Circus.TestFn | undefined,
mode: Circus.TestMode,
name: Circus.TestName,
parent: Circus.DescribeBlock,
timeout: number | undefined,
asyncError: Circus.Exception,
): Circus.TestEntry => ({
asyncError,
duration: null,
errors: [],
fn,
invocations: 0,
mode,
name: convertDescriptorToString(name),
parent,
startedAt: null,
status: null,
timeout,
});