Prevent forceOutput in test reporter from crashing.
This commit is contained in:
parent
e96b43e84d
commit
cafd34460b
@ -85,7 +85,7 @@ export function Reporter(runner: Runner) {
|
|||||||
function forceOutput() {
|
function forceOutput() {
|
||||||
if (((getTime() - lastOutput) / 1000) > MAX_DELAY) {
|
if (((getTime() - lastOutput) / 1000) > MAX_DELAY) {
|
||||||
const currentSuite = suites[suites.length - 1];
|
const currentSuite = suites[suites.length - 1];
|
||||||
log('[ Still running suite - test #' + currentSuite._countTotal + ' ]');
|
log(`[ Still running suite - test # ${ (currentSuite ? currentSuite._countTotal: "0") } ]`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user