Skip to main content

only

method Deno.DenoTest.only
Jump to headingDenoTest.only(t: Omit<TestDefinition, "only">): void

Shorthand property for focusing a particular test case.

Parameters Jump to heading

Return Type Jump to heading

void
Jump to headingDenoTest.only(
name: string,
fn: (t: TestContext) => void | Promise<void>,
): void

Shorthand property for focusing a particular test case.

Parameters Jump to heading

Jump to headingname: string
Jump to headingfn: (t: TestContext) => void | Promise<void>

Return Type Jump to heading

void
Jump to headingDenoTest.only(fn: (t: TestContext) => void | Promise<void>): void

Shorthand property for focusing a particular test case.

Parameters Jump to heading

Jump to headingfn: (t: TestContext) => void | Promise<void>

Return Type Jump to heading

void
Jump to headingDenoTest.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 Jump to heading

Jump to headingname: string
Jump to headingoptions: Omit<TestDefinition,
"fn"
| "name"
| "only"
>
Jump to headingfn: (t: TestContext) => void | Promise<void>

Return Type Jump to heading

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

Shorthand property for focusing a particular test case.

Parameters Jump to heading

Jump to headingoptions: Omit<TestDefinition,
"fn"
| "name"
| "only"
>
Jump to headingfn: (t: TestContext) => void | Promise<void>

Return Type Jump to heading

void
Jump to headingDenoTest.only(
options: Omit<TestDefinition, "fn" | "only">,
fn: (t: TestContext) => void | Promise<void>,
): void

Shorthand property for focusing a particular test case.

Parameters Jump to heading

Jump to headingoptions: Omit<TestDefinition, "fn" | "only">
Jump to headingfn: (t: TestContext) => void | Promise<void>

Return Type Jump to heading

void
Back to top