Docs (4.0.0)
class TestScope method

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