Skip to main content

function default.suite.only

Overload 1

#only(
name?: string,
options?: TestOptions,
fn?: SuiteFn,
): Promise<void>

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

Parameters #

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

Return Type #

Promise<void>

Overload 2

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

Parameters #

#name: string
optional
#fn: SuiteFn
optional

Return Type #

Promise<void>

Overload 3

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

Parameters #

#options: TestOptions
optional
#fn: SuiteFn
optional

Return Type #

Promise<void>

Overload 4

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

Parameters #

#fn: SuiteFn
optional

Return Type #

Promise<void>

Did you find what you needed?

Privacy policy