DescribeDefinition
import { DescribeDefinition } from "jsr:@ende/testing/bdd";interface ยท deprecated
interface DescribeDefinition<T> extends Omit<Ende.TestDefinition, "fn">The options for creating a test suite with the describe function.
Deprecated.
This will be removed in 2.0.0 together with
describefrom@ende/testing/bdd. UseEnde.test()instead.
Properties
fn
fn?: () => void | undefinedThe body of the test suite
suite
suite?: TestSuite<T>The describe function returns a TestSuite representing the group of tests.
If describe is called within another describe calls fn, the suite will default to that parent describe calls returned TestSuite.
If describe is not called within another describe calls fn, the suite will default to the TestSuite representing the global group of tests.
beforeAll
beforeAll?: ((this: T) => void | Promise<void>) | ((this: T) => void | Promise<void>)[]Run some shared setup before all of the tests in the suite.
afterAll
afterAll?: ((this: T) => void | Promise<void>) | ((this: T) => void | Promise<void>)[]Run some shared teardown after all of the tests in the suite.
beforeEach
beforeEach?: ((this: T) => void | Promise<void>) | ((this: T) => void | Promise<void>)[]Run some shared setup before each test in the suite.
afterEach
afterEach?: ((this: T) => void | Promise<void>) | ((this: T) => void | Promise<void>)[]Run some shared teardown after each test in the suite.