Skip to content

Commit

Permalink
Prevent forceOutput in test reporter from crashing.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed May 4, 2020
1 parent e96b43e commit cafd344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tests/src.ts/reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export function Reporter(runner: Runner) {
function forceOutput() {
if (((getTime() - lastOutput) / 1000) > MAX_DELAY) {
const currentSuite = suites[suites.length - 1];
log('[ Still running suite - test #' + currentSuite._countTotal + ' ]');
log(`[ Still running suite - test # ${ (currentSuite ? currentSuite._countTotal: "0") } ]`);
}
}

Expand Down

0 comments on commit cafd344

Please sign in to comment.