Skip to content

Commit

Permalink
test_runner: avoid unnecessary variable declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
pmarchini committed Feb 4, 2025
1 parent 9e21914 commit 666cb91
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/internal/test_runner/reporter/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ class SpecReporter extends Transform {
ArrayPrototypePush(results, formattedErr);
}

const output = ArrayPrototypeJoin(results, '\n');
this.#failedTests = []; // Clean up the failed tests
return output;
return ArrayPrototypeJoin(results, '\n'); ;
}
#handleTestReportEvent(type, data) {
const subtest = ArrayPrototypeShift(this.#stack); // This is the matching `test:start` event
Expand Down

0 comments on commit 666cb91

Please sign in to comment.