import { TestSuiteInternal } from "https://deno.land/std@0.155.0/testing/_test_suite.ts";
An internal representation of a group of tests.
Constructors
new
TestSuiteInternal(describe: DescribeDefinition<T>)Properties
protected
describe: DescribeDefinition<T>protected
steps: (TestSuiteInternal<T> | ItDefinition<T>)[]Static Properties
current: TestSuiteInternal<any> | null
The current test suite being registered.
If a test has been registered yet. Block adding global hooks if a test has been registered.
suites: Map<symbol, TestSuiteInternal<any>>
A map of all test suites by symbol.
Static Methods
addingOnlyStep<T>(suite: TestSuiteInternal<T>)
Updates all steps within top level suite to have ignore set to true if only is not set to true on step.
addStep<T>(suite: TestSuiteInternal<T>, step: TestSuiteInternal<T> | ItDefinition<T>)
This is used internally to add steps to a test suite.
registerTest(options: Deno.TestDefinition)
This is used internally to register tests.
reset()
This is used internally for testing this module.
run<T>()
This is used internally to run all steps for a test suite.
runTest<T>()
t: Deno.TestContext,
fn: (this: T, t: Deno.TestContext) => void | Promise<void>,
context: T,
activeIndex?,
setHook<T>()
This is used internally to add hooks to a test suite.