addTest
Adds a test to this scope (used by test()).
addTest(name: string, f: (test: TestCase) => void | Promise<void>, exclusive?: boolean, initResult?: Partial<TestResult>): void
Notes
- Use the test() function within a describe() callback instead of calling this method directly.
Related
- class TestScopeA class that represents a test scope, containing a number of test cases.
- function test(name, f)Adds a test case in the current scope.
- function describe(name, f)Creates a new test scope.