Skip to main content
Deno.DenoTest.only - Deno documentation
method Deno.DenoTest.only
DenoTest.only(t: Omit<TestDefinition, "only">): void

Shorthand property for focusing a particular test case.

Parameters

t: Omit<TestDefinition, "only">

Return Type

void
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
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
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
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
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