deno.com

method Deno.DenoTest.only

Overload 1

#DenoTest.only(t: Omit<TestDefinition, "only">): void

Shorthand property for focusing a particular test case.

Parameters #

#t: Omit<TestDefinition, "only">

Return Type #

void

Overload 2

#DenoTest.only(
name: string,
fn: (t: TestContext) => void | Promise<void>,
): void

Shorthand property for focusing a particular test case.

Parameters #

#name: string
#fn: (t: TestContext) => void | Promise<void>

Return Type #

void

Overload 3

#DenoTest.only(fn: (t: TestContext) => void | Promise<void>): void

Shorthand property for focusing a particular test case.

Parameters #

#fn: (t: TestContext) => void | Promise<void>

Return Type #

void

Overload 4

#DenoTest.only(
name: string,
options: Omit<TestDefinition,
"fn"
| "name"
| "only"
>
,
fn: (t: TestContext) => void | Promise<void>,
): void

Shorthand property for focusing a particular test case.

Parameters #

#name: string
#options: Omit<TestDefinition,
"fn"
| "name"
| "only"
>
#fn: (t: TestContext) => void | Promise<void>

Return Type #

void

Overload 5

#DenoTest.only(
options: Omit<TestDefinition,
"fn"
| "name"
| "only"
>
,
fn: (t: TestContext) => void | Promise<void>,
): void

Shorthand property for focusing a particular test case.

Parameters #

#options: Omit<TestDefinition,
"fn"
| "name"
| "only"
>
#fn: (t: TestContext) => void | Promise<void>

Return Type #

void

Overload 6

#DenoTest.only(
options: Omit<TestDefinition, "fn" | "only">,
fn: (t: TestContext) => void | Promise<void>,
): void

Shorthand property for focusing a particular test case.

Parameters #

#options: Omit<TestDefinition, "fn" | "only">
#fn: (t: TestContext) => void | Promise<void>

Return Type #

void