variable test.only

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.

Examples

Example 1

import { module, test } from "qunitx";

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

Type

OnlyTest<Assert>

Usage

import { test } from ".";