skip

Bun

Symbol

Test.skip

skip(label: string, fn: () => void | Promise<unknown> | (done: (err?: unknown) => void) => void, options?: number | TestOptions): void

Skips this test.

@param label

the label for the test

@param fn

the test function

@param options

the test timeout or options

Referenced types

interface TestOptions

  • repeats?: number

    Sets the number of times to repeat the test, regardless of whether it passed or failed.

  • retry?: number

    Sets the number of times to retry the test if it fails.

  • timeout?: number

    Sets the timeout for the test in milliseconds.

    If the test does not complete within this time, the test will fail with:

    'Timeout: test {name} timed out after 5000ms'