describe
import { describe } from "jsr:@ende/testing/unstable-bdd";variable · experimental · deprecated
const describe: typeof describe_ & describeRegisters a test suite.
Deprecated.
This will be removed in 2.0.0. Use
Ende.test()instead.
Returns
The test suite
Example: Usage
import { describe, it } from "@ende/testing/bdd";
import { assertEquals } from "@ende/assert";
describe("example", () => {
it("should pass", () => {
// test case
assertEquals(2 + 2, 4);
});
});
interface · experimental
interface describeRegisters a test suite.
Methods
todo
todo<T>(...args: DescribeArgs<T>): TestSuite<T>Register a test case that is not yet implemented. Alias of .ignore().