Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
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
  • Loading branch information
Xstoudi committed Dec 23, 2025
commit edb224e7e406500560cb61c97ba471f9be290871
3 changes: 3 additions & 0 deletions lib/internal/test_runner/reporter/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@
if (data.file === undefined) {
return this.#formatFailedTestResults();
}
break;
case 'test:watch:restarted':
return `\nRestarted at ${new Date().toLocaleTimeString()}\n`

Check failure on line 111 in lib/internal/test_runner/reporter/spec.js

View workflow job for this annotation

GitHub Actions / lint-js-and-md

Missing semicolon

Check failure on line 111 in lib/internal/test_runner/reporter/spec.js

View workflow job for this annotation

GitHub Actions / lint-js-and-md

Use `const { Date } = primordials;` instead of the global
}
}
_transform({ type, data }, encoding, callback) {
Expand Down
Loading