MCPcopy Index your code
hub / github.com/nodejs/node / after

Method after

lib/internal/test_runner/test.js:1320–1324  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1318 const wasSkippedBeforeRun = this.skipped;
1319
1320 const after = async () => {
1321 if (this.hooks.after.length > 0) {
1322 await this.runHook('after', hookArgs);
1323 }
1324 };
1325 const afterEach = runOnce(async () => {
1326 if (this.parent?.hooks.afterEach.length > 0 && !wasSkippedBeforeRun) {
1327 await this.parent.runHook('afterEach', hookArgs);

Calls 1

runHookMethod · 0.95

Tested by

no test coverage detected