test

import { test } from "jsr:@ende/testing/unstable-bdd";

variable · experimental · deprecated

const test: typeof test_ & test

Alias of it

Registers an individual test case.

Deprecated.

This will be removed in 2.0.0. Use Ende.test() instead.

Example: Usage

import { test } from "@ende/testing/bdd";
import { assertEquals } from "@ende/assert";

test("a test case", () => {
  // test case
  assertEquals(2 + 2, 4);
});

interface · experimental

interface test

Registers an individual test case.

Methods

todo

todo<T>(...args: ItArgs<T>): void

Register a test case that is not yet implemented. Alias of .ignore().

Source