You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/CLI.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -571,6 +571,10 @@ Use `--no-watchAll` (or `--watchAll=false`) to explicitly disable the watch mode
571
571
572
572
Whether to use [`watchman`](https://facebook.github.io/watchman/) for file crawling. Defaults to `true`. Disable using `--no-watchman`.
573
573
574
+
### `--workerGracefulExitTimeout=<number>`
575
+
576
+
Timeout in milliseconds for worker processes to exit gracefully after tests complete. Workers that do not exit in time are force-killed. Default: `500`.
577
+
574
578
### `--workerThreads`
575
579
576
580
Whether to use [worker threads](https://nodejs.org/dist/latest/docs/api/worker_threads.html) for parallelization. [Child processes](https://nodejs.org/dist/latest/docs/api/child_process.html) are used by default.
Copy file name to clipboardExpand all lines: docs/Configuration.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2483,6 +2483,30 @@ Default: `true`
2483
2483
2484
2484
Whether to use [`watchman`](https://facebook.github.io/watchman/) for file crawling.
2485
2485
2486
+
### `workerGracefulExitTimeout`\[number]
2487
+
2488
+
Default: `500`
2489
+
2490
+
Timeout in milliseconds for a worker process to exit gracefully after all tests have completed. If a worker does not exit within this timeout, it is force-killed.
2491
+
2492
+
Increase this value if your test environment requires more time to tear down (for example, when using `--detectOpenHandles` or when workers hold onto long-lived resources).
0 commit comments