after
external fun after(fn: HookFn = definedExternally, options: HookOptions = definedExternally)(source)
This function creates a hook that runs after executing a suite.
describe('tests', async () => {
after(() => console.log('finished running tests'));
it('is a subtest', () => {
assert.ok('some relevant assertion here');
});
});
Content copied to clipboard
Since
v18.8.0, v16.18.0
Parameters
fn
The hook function. If the hook uses callbacks, the callback function is passed as the second argument.
options
Configuration options for the hook.