Skip to content

Commit edb224e

Browse files
committed
test_runner: print info when test restarts
When using spec reporter and running test in watch mode, print an info message containing the current datetime when tests restart. Fixes: #57206
1 parent 799feac commit edb224e

File tree

1 file changed

+3
-0
lines changed
  • lib/internal/test_runner/reporter

1 file changed

+3
-0
lines changed

lib/internal/test_runner/reporter/spec.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ class SpecReporter extends Transform {
106106
if (data.file === undefined) {
107107
return this.#formatFailedTestResults();
108108
}
109+
break;
110+
case 'test:watch:restarted':
111+
return `\nRestarted at ${new Date().toLocaleTimeString()}\n`
109112
}
110113
}
111114
_transform({ type, data }, encoding, callback) {

0 commit comments

Comments
 (0)