From cafd34460b194d78092021f1d7e0307130340b68 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Sun, 3 May 2020 21:50:03 -0400 Subject: [PATCH] Prevent forceOutput in test reporter from crashing. --- packages/tests/src.ts/reporter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tests/src.ts/reporter.ts b/packages/tests/src.ts/reporter.ts index 9246ffee6c..4c35ba200d 100644 --- a/packages/tests/src.ts/reporter.ts +++ b/packages/tests/src.ts/reporter.ts @@ -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") } ]`); } }