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

Method postRun

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

Source from the content-addressed store, hash-verified

1737 return false;
1738 }
1739 postRun() {
1740 const { error, loc, parentTest: parent } = this;
1741
1742 // Report failures in the root test's after() hook.
1743 if (error && parent === parent.root && this.hookType === 'after') {
1744 if (isTestFailureError(error)) {
1745 error.failureType = kHookFailure;
1746 }
1747
1748 this.endTime ??= hrtime();
1749 parent.reporter.fail(0, loc, parent.subtests.length + 1, loc.file, {
1750 __proto__: null,
1751 duration_ms: this.duration(),
1752 error,
1753 }, undefined, undefined, undefined, parent.tags);
1754 }
1755 }
1756}
1757
1758class Suite extends Test {

Callers

nothing calls this directly

Calls 4

isTestFailureErrorFunction · 0.85
hrtimeFunction · 0.85
failMethod · 0.45
durationMethod · 0.45

Tested by

no test coverage detected