Docs (4.0.0)
class TestScope method

afterEach

Adds a callback that’s called after each test in this scope, and nested scopes.

afterEach(f: (test: TestCase) => void | Promise<void>): void

Parameters

  • f — The function to be called after each test. The TestCase instance for each test is passed as the only argument.

Related

  • class TestScopeA class that represents a test scope, containing a number of test cases.