We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6835c6 commit 7493701Copy full SHA for 7493701
1 file changed
bin/reporter.js
@@ -154,6 +154,7 @@ export default async function nodeTestReporterExodus(source) {
154
assert(path.pop() === data.name)
155
break
156
case 'test:fail':
157
+ if (!process.exitCode) process.exitCode = 1 // node:test might not set this on errors in describe()
158
if (!pskip(path)) print(`${color('✖ FAIL ', 'red')}${pathstr(path)}${formatSuffix(data)}`)
159
if (path.length > 0) assert(path.pop() === data.name) // afterAll can generate failures too, with an empty path
160
if (!data.todo) failedFiles.add(file)
0 commit comments