afterEach
fun afterEach(fn: TestContextHookFn = definedExternally, options: HookOptions = definedExternally)(source)
This function is used to create a hook running after each subtest of the current test.
Since
v18.8.0
Parameters
fn
The hook function. The first argument to this function is a TestContext
object. If the hook uses callbacks, the callback function is passed as the second argument.
options
Configuration options for the hook.