interface TaskCustomOptions {
    concurrent?: boolean;
    each?: boolean;
    fails?: boolean;
    fixtures?: FixtureItem[];
    handler?: ((context) => Awaitable<void>);
    meta?: Record<string, unknown>;
    only?: boolean;
    repeats?: number;
    retry?: number;
    sequential?: boolean;
    skip?: boolean;
    timeout?: number;
    todo?: boolean;
}

Hierarchy (view full)

Properties

concurrent?: boolean

Whether tests run concurrently. Tests inherit concurrent from describe() and nested describe() will inherit from parent's concurrent.

each?: boolean
fails?: boolean
fixtures?: FixtureItem[]
handler?: ((context) => Awaitable<void>)

Type declaration

    • (context): Awaitable<void>
    • Parameters

      Returns Awaitable<void>

meta?: Record<string, unknown>
only?: boolean
repeats?: number

How many times the test will run. Only inner tests will repeat if set on describe(), nested describe() will inherit parent's repeat by default.

Default

0
retry?: number

Times to retry the test if fails. Useful for making flaky tests more stable. When retries is up, the last test error will be thrown.

Default

0
sequential?: boolean

Whether tests run sequentially. Tests inherit sequential from describe() and nested describe() will inherit from parent's sequential.

skip?: boolean
timeout?: number

Test timeout.

todo?: boolean

Generated using TypeDoc