it
import { it } from "jsr:@ende/testing/bdd";interface · deprecated
interface itRegisters an individual test case.
Deprecated.
This will be removed in 2.0.0. Use
Ende.test()instead.
function · deprecated
function it<T>(...args: ItArgs<T>): voidRegisters 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 { describe, it } from "@ende/testing/bdd";
import { assertEquals } from "@ende/assert";
describe("example", () => {
it("should pass", () => {
// test case
assertEquals(2 + 2, 4);
});
});
namespace
namespace itAdditional properties on the it function.
Call signatures
Call signature
<T>(...args: ItArgs<T>): voidMethods
only
only<T>(...args: ItArgs<T>): voidRegisters an individual test case with only set to true.
ignore
ignore<T>(...args: ItArgs<T>): voidRegisters an individual test case with ignore set to true.
skip
skip<T>(...args: ItArgs<T>): voidRegisters an individual test case with ignore set to true. Alias of
.ignore().