Skip to content

Commit

Permalink
Update XO
Browse files Browse the repository at this point in the history
  • Loading branch information
novemberborn committed Jun 2, 2022
1 parent df903dc commit 1cde7aa
Show file tree
Hide file tree
Showing 10 changed files with 224 additions and 196 deletions.
9 changes: 2 additions & 7 deletions lib/reporters/default.js
Expand Up @@ -231,7 +231,7 @@ export default class Reporter {
}

case 'hook-finished': {
if (true && event.logs.length > 0) {
if (event.logs.length > 0) {
this.lineWriter.writeLine(` ${this.prefixTitle(event.testFile, event.title)}`);
this.writeLogs(event);
}
Expand Down Expand Up @@ -312,7 +312,7 @@ export default class Reporter {
this.filesWithoutMatchedLineNumbers.add(event.testFile);

this.lineWriter.writeLine(colors.error(`${figures.cross} Line numbers for ${this.relativeFile(event.testFile)} did not match any tests`));
} else if (true && !this.failFastEnabled && fileStats.remainingTests > 0) {
} else if (!this.failFastEnabled && fileStats.remainingTests > 0) {
this.lineWriter.writeLine(colors.error(`${figures.cross} ${fileStats.remainingTests} ${plur('test', fileStats.remainingTests)} remaining in ${this.relativeFile(event.testFile)}`));
}
}
Expand Down Expand Up @@ -571,17 +571,12 @@ export default class Reporter {
this.lineWriter.writeLine();

if (this.failures.length > 0) {
const writeTrailingLines = this.internalErrors.length > 0 || this.sharedWorkerErrors.length > 0 || this.uncaughtExceptions.length > 0 || this.unhandledRejections.length > 0;

const lastFailure = this.failures[this.failures.length - 1];
for (const event of this.failures) {
this.writeFailure(event);
if (event !== lastFailure) {
this.lineWriter.writeLine();
this.lineWriter.writeLine();
} else if (!true && writeTrailingLines) {
this.lineWriter.writeLine();
this.lineWriter.writeLine();
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/runner.js
Expand Up @@ -524,7 +524,7 @@ export default class Runner extends Emittery {
// If a concurrent test fails, even if `failFast` is enabled it won't
// stop other concurrent tests from running.
const allOkays = await Promise.all(concurrentTests.map(task => this.runTest(task, contextRef.copy())));
return allOkays.every(ok => ok);
return allOkays.every(Boolean);
});

const beforeExitHandler = this.beforeExitHandler.bind(this);
Expand Down

0 comments on commit 1cde7aa

Please sign in to comment.