Jest · Function
afterAll
afterAll runs a cleanup function after all tests in its scope finish. It can wait for asynchronous cleanup and accepts an optional timeout.
Last updated
Syntax
afterAll(fn, timeout)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
afterEachbeforeAllbeforeEachdescribetest