function describe.onlyModule
onlyModule(
moduleName: string,
runtimeOptionsOrContent: object | ModuleContent,
moduleContent?: ModuleContent
): void

Runs only this module, and any other only module or test: every other test is skipped. Equivalent to QUnit.module.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.

Examples

Example 1

import { module, test } from "qunitx";

module.only("Math — the one being worked on", () => {
  test("addition", (assert) => {
    assert.equal(1 + 1, 2);
  });
});

Parameters

moduleName: string

Name of the module.

runtimeOptionsOrContent: object | ModuleContent
optional
moduleContent: ModuleContent

Callback that defines tests and hooks.

Return Type

void

Usage

import { describe } from ".";