Fonly
Bun

function

test.only

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

Shorthand for marking a test as only. This is the same as calling test 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 test 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 test 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 test with options.only set to true.