function todo
todo(
testName: string,
_testContent?: unknown
): void

Registers a todo test. Equivalent to test.todo. The test body is never executed and the test is reported as ignored by Deno's runner, which has no native todo concept.

Examples

Example 1

import { module, todo } from "qunitx";

module("Math", () => {
  todo("addition is not yet implemented", (assert) => {
    assert.equal(1 + 1, 2);
  });
});

Parameters

testName: string

Name of the test to mark as todo.

optional
_testContent: unknown

Optional body (ignored — the test will not run).

Return Type

void

Usage

import { todo } from ".";