Skip to main content

function test.only

Overload 1

#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.

Parameters #

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

Return Type #

Promise<void>

Overload 2

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

Parameters #

#name: string
optional
#fn: TestFn
optional

Return Type #

Promise<void>

Overload 3

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

Parameters #

#options: TestOptions
optional
#fn: TestFn
optional

Return Type #

Promise<void>

Overload 4

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

Parameters #

#fn: TestFn
optional

Return Type #

Promise<void>

Did you find what you needed?

Privacy policy