Bun

namespace

test.it

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

Alias for test.

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

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

Alias for test.

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

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

Alias for test.

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

function it(
fn?: TestFn
): Promise<void>;

Alias for test.

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

namespace it

  • function only(
    name?: string,
    options?: TestOptions,
    fn?: TestFn
    ): Promise<void>;

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

    function only(
    name?: string,
    fn?: TestFn
    ): Promise<void>;

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

    function only(
    options?: TestOptions,
    fn?: TestFn
    ): Promise<void>;

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

    function only(
    fn?: TestFn
    ): Promise<void>;

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

  • function skip(
    name?: string,
    options?: TestOptions,
    fn?: TestFn
    ): Promise<void>;

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

    function skip(
    name?: string,
    fn?: TestFn
    ): Promise<void>;

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

    function skip(
    options?: TestOptions,
    fn?: TestFn
    ): Promise<void>;

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

    function skip(
    fn?: TestFn
    ): Promise<void>;

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

  • function todo(
    name?: string,
    options?: TestOptions,
    fn?: TestFn
    ): Promise<void>;

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

    function todo(
    name?: string,
    fn?: TestFn
    ): Promise<void>;

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

    function todo(
    options?: TestOptions,
    fn?: TestFn
    ): Promise<void>;

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

    function todo(
    fn?: TestFn
    ): Promise<void>;

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