()
| 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 | |
| 1758 | class Suite extends Test { |
nothing calls this directly
no test coverage detected