THookFn
Bun

type

test.default.HookFn

type HookFn = (c: TestContext | SuiteContext, done: (result?: any) => void) => any

The hook function. The first argument is the context in which the hook is called. If the hook uses callbacks, the callback function is passed as the second argument.