variable only

Runs only this test, and any other only test or module. Equivalent to test.only. 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, only } from "qunitx";

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

Type

Test.only

Usage

import { only } from ".";