interface

test.TestWithContext

interface TestWithContext<Context, Row extends ReadonlyArray<unknown> = []>

A test whose callbacks receive the TestContext instead of a done callback.

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, it fails with:

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