From 97dbfa09f72053c9646f7b9cefb5986314ef1c5a Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Sun, 24 May 2026 16:57:41 -0700 Subject: [PATCH] test: avoid test_runner watch restart in spec snapshot Pass explicit test files to the watch-mode spec reporter fixture. This prevents setup writes from triggering a watch restart. Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> Assisted-by: openai:gpt-5.5 PR-URL: https://github.com/nodejs/node/pull/63392 Refs: https://github.com/nodejs/node/actions/runs/25983032903/job/76375266688 Reviewed-By: Antoine du Hamel --- test/fixtures/test-runner/output/test-runner-watch-spec.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/fixtures/test-runner/output/test-runner-watch-spec.mjs b/test/fixtures/test-runner/output/test-runner-watch-spec.mjs index 6c9b575a164..518fcb56526 100644 --- a/test/fixtures/test-runner/output/test-runner-watch-spec.mjs +++ b/test/fixtures/test-runner/output/test-runner-watch-spec.mjs @@ -33,6 +33,10 @@ const { signal } = controller; const stream = run({ watch: true, cwd: tmpdir.path, + files: [ + fixturePaths['failing-test.js'], + fixturePaths['test.js'], + ], signal, });