Additional properties on the it function.
Defines one test per case of dataset, each receiving its case as data.
Equivalent to QUnit.test.each, and names the cases as it does: name [value] for a
short string, name [index: value] for other primitives, name [index] otherwise,
and name [key] for an object dataset.
Runs only this test, and any other only test or module: every other test is skipped.
Equivalent to QUnit.test.only, and to passing { only: true }.
Deno runs only these, and then fails the run on purpose, so that an only is
not committed by accident.
Registers a skipped test. Equivalent to QUnit.test.skip.
The test body is never executed; the test is reported as ignored by Deno's runner.
Registers a todo test. Equivalent to QUnit.test.todo.
The test body is never executed; the test is reported as ignored by Deno's runner
(Deno has no native todo concept).
Additional properties on the it function.
Defines one test per case of dataset, each receiving its case as data.
Equivalent to QUnit.test.each, and names the cases as it does: name [value] for a
short string, name [index: value] for other primitives, name [index] otherwise,
and name [key] for an object dataset.
Runs only this test, and any other only test or module: every other test is skipped.
Equivalent to QUnit.test.only, and to passing { only: true }.
Deno runs only these, and then fails the run on purpose, so that an only is
not committed by accident.
Registers a skipped test. Equivalent to QUnit.test.skip.
The test body is never executed; the test is reported as ignored by Deno's runner.
Registers a todo test. Equivalent to QUnit.test.todo.
The test body is never executed; the test is reported as ignored by Deno's runner
(Deno has no native todo concept).
Additional properties on the it function.
Defines one test per case of dataset, each receiving its case as data.
Equivalent to QUnit.test.each, and names the cases as it does: name [value] for a
short string, name [index: value] for other primitives, name [index] otherwise,
and name [key] for an object dataset.
Runs only this test, and any other only test or module: every other test is skipped.
Equivalent to QUnit.test.only, and to passing { only: true }.
Deno runs only these, and then fails the run on purpose, so that an only is
not committed by accident.
Registers a skipped test. Equivalent to QUnit.test.skip.
The test body is never executed; the test is reported as ignored by Deno's runner.
Registers a todo test. Equivalent to QUnit.test.todo.
The test body is never executed; the test is reported as ignored by Deno's runner
(Deno has no native todo concept).
it(testName: string,testContent: (assert: Assert,meta: { testName: string; options: unknown; context: Record<string, unknown>; }) => void | Promise<void>): void
Defines an individual test within a module for Deno's BDD test runner.
Wraps it() from @std/testing/bdd and handles the full QUnit lifecycle:
beforeEach/afterEach hooks, async assertion waiting, and step verification.
Must be called inside a module() callback.
testContent: (assert: Assert,meta: { testName: string; options: unknown; context: Record<string, unknown>; }) => void | Promise<void>
Test callback receiving (assert, { testName, options })
it(testName: string,runtimeOptions: object,testContent: (assert: Assert,meta: { testName: string; options: unknown; context: Record<string, unknown>; }) => void | Promise<void>): void
Defines an individual test with optional Deno BDD runtime options forwarded to it().
testContent: (assert: Assert,meta: { testName: string; options: unknown; context: Record<string, unknown>; }) => void | Promise<void>