Function describe
Methods
ignore
only
- only<T>(...args): TestSuite<T>
Only execute this test suite.
Type Parameters
Parameters
Rest...args: DescribeArgs<T>The test suite body
Returns TestSuite<T>
Example: Usage
import { describe, it, beforeAll } from "@std/testing/bdd";
import { assertEquals } from "@std/assert";
describe("example", () => {
it("should pass", () => {
assertEquals(2 + 2, 4);
});
});
// Only this test suite will run
describe.only("example 2", () => {
it("should pass too", () => {
assertEquals(3 + 4, 7);
});
});
Registers a test suite.