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 <duhamelantoine1995@gmail.com>
This commit is contained in:
Trivikram Kamat authored and Antoine du Hamel committed 2026-05-27 11:35:46 +02:00
1 parent 8b038d7b33
commit 97dbfa09f7
1 file changed
+4
@@ -33,6 +33,10 @@ const { signal } = controller;
const stream = run({
watch: true,
cwd: tmpdir.path,
files: [
fixturePaths['failing-test.js'],
fixturePaths['test.js'],
],
signal,
});