Hooks allow you to run setup and teardown logic before or after your tests or test suites.
(fn: (ctx: SuiteContext) => void | Promise<void>, timeout?: number) => void
Runs once before all tests in the current suite.
(fn: (ctx: SuiteContext) => void | Promise<void>, timeout?: number) => void
Runs once after all tests in the current suite.
(fn: () => void | Promise<void>, timeout?: number) => void
Runs before each test in the current suite.
(fn: () => void | Promise<void>, timeout?: number) => void
Runs after each test in the current suite.