We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85705a4 commit 3638be8Copy full SHA for 3638be8
lib/internal/test_runner/reporter/spec.js
@@ -121,7 +121,10 @@ class SpecReporter extends Transform {
121
callback(null, this.#handleEvent({ type, data }));
122
}
123
_flush(callback) {
124
- const results = [`\n${colors['test:fail']}${symbols['test:fail']}failing tests:${white}\n`];
+ const results = [];
125
+ if (this.#failedTests.length > 0) {
126
+ ArrayPrototypePush(results, `\n${colors['test:fail']}${symbols['test:fail']}failing tests:${white}\n`);
127
+ }
128
for (let i = 0; i < this.#failedTests.length; i++) {
129
ArrayPrototypePush(results, this.#formatTestReport(
130
'test:fail',
0 commit comments