Skip to main content

function test.it

Overload 1

#it(
name?: string,
options?: TestOptions,
fn?: TestFn,
): Promise<void>

Alias for test.

The it() function is imported from the node:test module.

Parameters #

#name: string
optional
#options: TestOptions
optional
#fn: TestFn
optional

Return Type #

Promise<void>

Overload 2

#it(
name?: string,
fn?: TestFn,
): Promise<void>

Parameters #

#name: string
optional
#fn: TestFn
optional

Return Type #

Promise<void>

Overload 3

#it(
options?: TestOptions,
fn?: TestFn,
): Promise<void>

Parameters #

#options: TestOptions
optional
#fn: TestFn
optional

Return Type #

Promise<void>

Overload 4

#it(fn?: TestFn): Promise<void>

Parameters #

#fn: TestFn
optional

Return Type #

Promise<void>

namespace test.it

Functions #

f
test.it.only

Shorthand for marking a test as only. This is the same as calling it with options.only set to true.

    f
    test.it.skip

    Shorthand for skipping a test. This is the same as calling it with options.skip set to true.

      f
      test.it.todo

      Shorthand for marking a test as TODO. This is the same as calling it with options.todo set to true.

        Did you find what you needed?

        Privacy policy