From 6c4d2d5bd6d610ab57d3b33d54b82448cc425cba Mon Sep 17 00:00:00 2001 From: Sivakumar <81683761+sivakumar-77@users.noreply.github.com> Date: Sat, 8 Mar 2025 23:02:14 +0530 Subject: [PATCH] lib: restart log in runner.js Fixes https://github.com/nodejs/node/issues/57206 Added restart log in test-runner/runner.js to log with timestamp and test-file, whenever the test file is restart testing in `--watch` mode. --- lib/internal/test_runner/runner.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/internal/test_runner/runner.js b/lib/internal/test_runner/runner.js index 43a62b5b4307e4..6e6a0a9276389a 100644 --- a/lib/internal/test_runner/runner.js +++ b/lib/internal/test_runner/runner.js @@ -469,6 +469,7 @@ function watchFiles(testFiles, opts) { opts.root.harness.watching = true; async function restartTestFile(file) { + process.stdout.write(`${new Date().toISOString()} Restarting ${file}\n`); const runningProcess = runningProcesses.get(file); if (runningProcess) { runningProcess.kill();