KC's Workspace
    Preparing search index...
    interface TestOptions {
        concurrent?: boolean;
        fails?: boolean;
        meta?: Partial<TaskMeta>;
        only?: boolean;
        repeats?: number;
        retry?: Retry;
        sequential?: boolean;
        skip?: boolean;
        tags?: string | string[];
        timeout?: number;
        todo?: boolean;
    }
    Index

    Properties

    concurrent?: boolean

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

    fails?: boolean

    Whether the test is expected to fail. If it does, the test will pass, otherwise it will fail.

    Custom test metadata available to reporters.

    only?: boolean

    Should this test be the only one running in a suite.

    repeats?: number

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

    0
    
    retry?: Retry

    Retry configuration for the test.

    • If a number, specifies how many times to retry
    • If an object, allows fine-grained retry control
    0
    
    sequential?: boolean

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

    skip?: boolean

    Whether the test should be skipped.

    tags?: string | string[]

    Custom tags of the test. Useful for filtering tests.

    timeout?: number

    Test timeout.

    todo?: boolean

    Whether the test should be skipped and marked as a todo.