node/test/test-runner
Trivikram Kamat 45c7071b4a
test_runner: fix watch cwd with isolation none
When watch mode runs with isolation disabled, spawn the child test
runner with the files or glob patterns from the current run instead
of reusing the parent process argv.

This keeps discovery scoped to the configured cwd and avoids rerunning
the driver test when the parent argv points outside that cwd.

Fixes: https://github.com/nodejs/node/issues/63689

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/63690
Fixes: https://github.com/nodejs/node/issues/63689
Refs: https://github.com/nodejs/reliability/blob/main/reports/2026-06-01.md#jstest-failure
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
2026-06-08 06:56:20 +00:00
..
test-output-abort-hooks.mjs
test-output-abort-runs-after-hook.mjs
test-output-abort-suite.mjs
test-output-abort.mjs
test-output-arbitrary-output-colored.mjs
test-output-arbitrary-output.mjs
test-output-assertion-color-tty.mjs
test-output-async-test-scheduling.mjs
test-output-before-and-after-each-too-many-listeners.mjs
test-output-before-and-after-each-with-timeout-too-many-listeners.mjs
test-output-coverage-failure.mjs
test-output-coverage-short-filename.mjs
test-output-coverage-width-40.mjs
test-output-coverage-width-80-color.mjs
test-output-coverage-width-80-uncovered-lines-color.mjs
test-output-coverage-width-80-uncovered-lines.mjs
test-output-coverage-width-80.mjs
test-output-coverage-width-100-uncovered-lines.mjs
test-output-coverage-width-100.mjs
test-output-coverage-width-150-uncovered-lines.mjs
test-output-coverage-width-150.mjs
test-output-coverage-width-infinity-uncovered-lines.mjs
test-output-coverage-width-infinity.mjs
test-output-coverage-with-mock-cjs.mjs module: fix coverage of mocked CJS modules imported from ESM 2026-03-17 16:02:55 +00:00
test-output-coverage-with-mock.mjs module: remove --experimental-transform-types 2026-02-27 16:32:43 +00:00
test-output-default-output.mjs
test-output-describe-it.mjs
test-output-describe-nested.mjs
test-output-dot-output-custom-columns.mjs
test-output-dot-reporter.mjs
test-output-eval-dot.mjs
test-output-eval-spec.mjs
test-output-eval-tap.mjs
test-output-filtered-suite-delayed-build.mjs
test-output-filtered-suite-order.mjs
test-output-filtered-suite-throws.mjs
test-output-force-exit.mjs
test-output-global-after-should-fail-the-test.mjs
test-output-global-hooks-with-no-tests.mjs
test-output-hooks-spec-reporter.mjs
test-output-hooks-with-no-global-test.mjs
test-output-hooks.mjs
test-output-junit-reporter.mjs
test-output-lcov-reporter.mjs
test-output-name-and-skip-patterns.mjs
test-output-name-pattern-with-only.mjs
test-output-name-pattern.mjs
test-output-no-refs.mjs
test-output-no-tests.mjs
test-output-non-tty-forced-color-output.mjs
test-output-only-tests.mjs
test-output-output-cli.mjs
test-output-output.mjs
test-output-randomize-nested-scenarios-output-cli-none.mjs test_runner: support test order randomization 2026-04-02 16:55:11 +00:00
test-output-randomize-nested-scenarios-output-cli-process.mjs test_runner: support test order randomization 2026-04-02 16:55:11 +00:00
test-output-randomize-output-cli-none.mjs test_runner: support test order randomization 2026-04-02 16:55:11 +00:00
test-output-randomize-output-cli.mjs test_runner: support test order randomization 2026-04-02 16:55:11 +00:00
test-output-skip-each-hooks.mjs
test-output-skip-pattern.mjs
test-output-source-mapped-locations.mjs
test-output-spec-reporter-cli.mjs
test-output-spec-reporter-successful.mjs
test-output-spec-reporter-watch-restart.mjs test_runner: print info when test restarts 2026-01-17 17:33:57 +00:00
test-output-spec-reporter.mjs
test-output-suite-skip-hooks.mjs
test-output-tap-escape.mjs test: unify assertSnapshot stacktrace transform 2026-02-11 14:36:49 +00:00
test-output-test-diagnostic-warning-without-test-only-flag.mjs
test-output-test-runner-plan-timeout.mjs
test-output-test-runner-plan.mjs
test-output-test-runner-watch-spec.mjs
test-output-test-timeout-flag-with-test.mjs
test-output-test-timeout-flag.mjs
test-output-timeout-in-before-each.mjs
test-output-typescript-coverage.mjs module: remove --experimental-transform-types 2026-02-27 16:32:43 +00:00
test-output-unfinished-suite-async-error.mjs
test-run-watch-create.mjs test: split test-runner-run-watch.mjs 2025-11-11 10:36:52 +00:00
test-run-watch-cwd-isolation-none-argv.mjs test_runner: fix watch cwd with isolation none 2026-06-08 06:56:20 +00:00
test-run-watch-cwd-isolation-none.mjs test: split test-runner-run-watch.mjs 2025-11-11 10:36:52 +00:00
test-run-watch-cwd-isolation-process.mjs test: split test-runner-run-watch.mjs 2025-11-11 10:36:52 +00:00
test-run-watch-cwd.mjs test: split test-runner-run-watch.mjs 2025-11-11 10:36:52 +00:00
test-run-watch-delete.mjs test: split test-runner-run-watch.mjs 2025-11-11 10:36:52 +00:00
test-run-watch-dependency-repeatedly.mjs test: split test-runner-run-watch.mjs 2025-11-11 10:36:52 +00:00
test-run-watch-different-cwd-dependency.mjs test: split test-runner-run-watch.mjs 2025-11-11 10:36:52 +00:00
test-run-watch-different-cwd-rename.mjs test: split test-runner-run-watch.mjs 2025-11-11 10:36:52 +00:00
test-run-watch-different-runner-cwd-isolation-process.mjs test: split test-runner-run-watch.mjs 2025-11-11 10:36:52 +00:00
test-run-watch-different-runner-cwd.mjs test: split test-runner-run-watch.mjs 2025-11-11 10:36:52 +00:00
test-run-watch-emit-restarted.mjs test: split test-runner-run-watch.mjs 2025-11-11 10:36:52 +00:00
test-run-watch-esm-dependency.mjs test: split test-runner-run-watch.mjs 2025-11-11 10:36:52 +00:00
test-run-watch-no-emit-restarted-disabled.mjs test: split test-runner-run-watch.mjs 2025-11-11 10:36:52 +00:00
test-run-watch-rename.mjs test: split test-runner-run-watch.mjs 2025-11-11 10:36:52 +00:00
test-run-watch-repeatedly.mjs test: split test-runner-run-watch.mjs 2025-11-11 10:36:52 +00:00
test-run-watch-run-duration.mjs test: split test-runner-run-watch.mjs 2025-11-11 10:36:52 +00:00
test-run-watch-without-file.mjs test: split test-runner-run-watch.mjs 2025-11-11 10:36:52 +00:00
test-runner.status
test-watch-create-isolation-none.mjs
test-watch-create-isolation-process.mjs
test-watch-delete-isolation-none.mjs
test-watch-delete-isolation-process.mjs
test-watch-dependency-isolation-none.mjs
test-watch-dependency-isolation-process.mjs
test-watch-esm-dependency-isolation-none.mjs
test-watch-esm-dependency-isolation-process.mjs
test-watch-no-file-isolation-none.mjs
test-watch-no-file-isolation-process.mjs
test-watch-rename-isolation-none.mjs
test-watch-rename-isolation-process.mjs
test-watch-run-repeatedly-isolation-none.mjs
test-watch-run-repeatedly-isolation-process.mjs
testcfg.py