node/test/sequential
SudhansuBandha 0e2adb3e45
watch: track worker entry files in watch mode
Currently, --watch mode only tracks dependencies from the main
module graph (require/import). Worker thread entry points created
via new Worker() are not included, so changes to worker files do
not trigger restarts.

This change hooks into Worker initialization and registers the
worker entry file with watch mode, ensuring restarts when worker
files change.

Fixes: https://github.com/nodejs/node/issues/62275
Signed-off-by: SudhansuBandha <sudhansu9.vssut@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/62368
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
2026-05-07 15:41:48 +02:00
..
sequential.status test: move sea tests into test/sea 2025-11-07 18:11:31 +01:00
test-async-wrap-getasyncid.js worker: add heap profile API 2025-09-24 09:03:46 +02:00
test-buffer-creation-regression.js
test-child-process-emfile.js
test-child-process-execsync.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-child-process-exit.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-child-process-pass-fd.js test: ensure assertions are reachable in test/sequential 2025-11-13 22:44:14 +01:00
test-cli-syntax-bad.js
test-cli-syntax-file-not-found.js
test-cli-syntax-good.js
test-cli-syntax-require.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-cluster-inspect-brk.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-cluster-net-listen-ipv6only-none.js
test-cluster-net-listen-ipv6only-rr.js
test-cluster-port-reuse-between-workers.js cluster: fix port reuse between cluster 2026-01-27 22:50:38 +01:00
test-cluster-send-handle-large-payload.js test: ensure assertions are reachable in test/sequential 2025-11-13 22:44:14 +01:00
test-cpu-prof-default.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-cpu-prof-dir-absolute.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-cpu-prof-dir-and-name.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-cpu-prof-dir-relative.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-cpu-prof-dir-worker.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-cpu-prof-drained.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-cpu-prof-exit.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-cpu-prof-invalid-options.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-cpu-prof-kill.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-cpu-prof-name.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-cpu-prof-worker-argv.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-crypto-timing-safe-equal-fast.js crypto: fix argument validation in crypto.timingSafeEqual fast path 2025-11-13 22:44:18 +01:00
test-crypto-timing-safe-equal.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-debug-prompt.js
test-debugger-custom-port.js test: update startCLI to set --port=0 by default 2025-07-21 10:59:02 +02:00
test-debugger-debug-brk.js
test-debugger-invalid-args.js test: update startCLI to set --port=0 by default 2025-07-21 10:59:02 +02:00
test-debugger-launch.mjs test: forbid use of named imports for fixtures 2026-02-22 23:16:09 +01:00
test-debugger-pid.js test: ensure assertions are reachable in test/sequential 2025-11-13 22:44:14 +01:00
test-deprecation-flags.js test: ensure assertions are reachable in test/sequential 2025-11-13 22:44:14 +01:00
test-dgram-bind-shared-ports.js
test-dgram-implicit-bind-failure.js
test-dgram-pingpong.js test: ensure assertions are reachable in test/sequential 2025-11-13 22:44:14 +01:00
test-diagnostic-dir-cpu-prof.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-diagnostic-dir-heap-prof.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-error-serdes.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-fs-opendir-recursive.js test: ensure assertions are reached on more tests 2026-01-19 19:18:57 +01:00
test-fs-readdir-recursive.js test: ensure assertions are reachable in test/sequential 2025-11-13 22:44:14 +01:00
test-fs-stat-sync-overflow.js
test-fs-watch.js
test-gc-http-client-onerror.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-gc-http-client-timeout.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-gc-http-client.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-get-heapsnapshot-options.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-heapdump-flag-custom-dir.js test: ensure assertions are reachable in test/sequential 2025-11-13 22:44:14 +01:00
test-heapdump-flag.js
test-heapdump.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-http-econnrefused.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-http-keep-alive-large-write.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-http-keepalive-maxsockets.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-http-regr-gh-2928.js
test-http-server-keep-alive-timeout-slow-client-headers.js
test-http-server-keep-alive-timeout-slow-server.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-http-server-request-timeouts-mixed.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-http2-large-file.js
test-http2-max-session-memory.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-http2-ping-flood.js test: ensure assertions are reachable in test/sequential 2025-11-13 22:44:14 +01:00
test-http2-settings-flood.js test: ensure assertions are reachable in test/sequential 2025-11-13 22:44:14 +01:00
test-http2-timeout-large-write-file.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-http2-timeout-large-write.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-https-connect-localport.js
test-https-server-keep-alive-timeout.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-init.js
test-inspector-network-resource.js test: make test-inspector-network-resource sequential 2025-08-08 11:56:48 +02:00
test-inspector-open-dispose.mjs test: ensure assertions are reachable in test/sequential 2025-11-13 22:44:14 +01:00
test-inspector-port-cluster.js test: enforce better never-settling-promise detection 2026-02-22 23:16:09 +01:00
test-module-loading.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-net-better-error-messages-port.js
test-net-connect-econnrefused.js test: ensure assertions are reachable in test/sequential 2025-11-13 22:44:14 +01:00
test-net-connect-handle-econnrefused.js
test-net-connect-local-error.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-net-GH-5504.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-net-listen-shared-ports.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-net-localport.js test: ensure assertions are reachable in test/sequential 2025-11-13 22:44:14 +01:00
test-net-reconnect-error.js
test-net-response-size.js
test-net-server-address.js
test-net-server-bind.js test: ensure assertions are reachable in test/sequential 2025-11-13 22:44:14 +01:00
test-net-server-listen-ipv6-link-local.js
test-next-tick-error-spin.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-perf-hooks.js test: fix incorrect calculation in test-perf-hooks.js 2025-11-07 18:11:33 +01:00
test-performance-eventloopdelay.js test: fix flaky test-performance-eventloopdelay 2026-02-22 23:16:18 +01:00
test-pipe.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-process-title.js test: ensure assertions are reachable in test/sequential 2025-11-13 22:44:14 +01:00
test-process-warnings.js test: ensure assertions are reachable in test/sequential 2025-11-13 22:44:14 +01:00
test-repl-timeout-throw.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-require-cache-without-stat.js test: forbid use of named imports for fixtures 2026-02-22 23:16:09 +01:00
test-resolution-inspect-brk.js
test-runner-run-inspect.mjs tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-stream2-fs.js test: ensure assertions are reachable in test/sequential 2025-11-13 22:44:14 +01:00
test-stream2-stderr-sync.js test: ensure assertions are reachable in test/sequential 2025-11-13 22:44:14 +01:00
test-timers-block-eventloop.js test: ensure assertions are reachable in test/sequential 2025-11-13 22:44:14 +01:00
test-timers-set-interval-excludes-callback-duration.js test: ensure assertions are reachable in test/sequential 2025-11-13 22:44:14 +01:00
test-tls-connect.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-tls-lookup.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-tls-psk-client.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-tls-session-timeout.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-util-debug.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-vm-break-on-sigint.js
test-vm-timeout-escape-promise-module-2.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-vm-timeout-rethrow.js
test-watch-mode-inspect.mjs tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-watch-mode-restart-esm-loading-error.mjs test: fix race condition in watch mode tests 2026-02-22 23:16:16 +01:00
test-watch-mode-watch-flags.mjs tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-watch-mode-worker.mjs watch: track worker entry files in watch mode 2026-05-07 15:41:48 +02:00
test-watch-mode.mjs watch: fix --env-file-if-exists crashing on linux if the file is missing 2026-05-07 15:41:38 +02:00
test-without-async-context-frame.mjs test: ensure assertions are reachable in test/sequential 2025-11-13 22:44:14 +01:00
test-worker-eventlooputil.js test: ensure assertions are reachable in test/sequential 2025-11-13 22:44:14 +01:00
test-worker-fshandles-error-on-termination.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-worker-fshandles-open-close-on-termination.js
test-worker-heapsnapshot-options.js
test-worker-prof.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-write-heapsnapshot-options.js tools: enforce trailing commas in test/sequential 2026-02-22 23:16:08 +01:00
test-zlib-crc32-fast-api.js zlib: implement fast path for crc32 2025-09-24 09:03:36 +02:00
testcfg.py