test

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

function ยท deprecated

function test<T>(...args: ItArgs<T>): void

Alias of it

Registers an individual test case.

...args: ItArgs<T>

The 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);
});

namespace

namespace test

Additional properties on the test function.

Source