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
@@ -918,15 +918,15 @@ This option doesn't affect tests running in the same file. If you want to run th
918
918
919
919
### maxWorkers<NonProjectOption /> {#maxworkers}
920
920
921
-
-**Type:**`number`
921
+
-**Type:**`number | string`
922
922
923
-
Maximum number of workers to run tests in. `poolOptions.{threads,vmThreads}.maxThreads`/`poolOptions.forks.maxForks` has higher priority.
923
+
Maximum number or percentage of workers to run tests in. `poolOptions.{threads,vmThreads}.maxThreads`/`poolOptions.forks.maxForks` has higher priority.
924
924
925
925
### minWorkers<NonProjectOption /> {#minworkers}
926
926
927
-
-**Type:**`number`
927
+
-**Type:**`number | string`
928
928
929
-
Minimum number of workers to run tests in. `poolOptions.{threads,vmThreads}.minThreads`/`poolOptions.forks.minForks` has higher priority.
929
+
Minimum number or percentage of workers to run tests in. `poolOptions.{threads,vmThreads}.minThreads`/`poolOptions.forks.minForks` has higher priority.
Copy file name to clipboardExpand all lines: docs/guide/cli-table.md
+10-10
Original file line number
Diff line number
Diff line change
@@ -61,27 +61,27 @@
61
61
|`--pool <pool>`| Specify pool, if not running in the browser (default: `threads`) |
62
62
|`--poolOptions.threads.isolate`| Isolate tests in threads pool (default: `true`) |
63
63
|`--poolOptions.threads.singleThread`| Run tests inside a single thread (default: `false`) |
64
-
|`--poolOptions.threads.maxThreads <workers>`| Maximum number of threads to run tests in |
65
-
|`--poolOptions.threads.minThreads <workers>`| Minimum number of threads to run tests in |
64
+
|`--poolOptions.threads.maxThreads <workers>`| Maximum number or percentage of threads to run tests in |
65
+
|`--poolOptions.threads.minThreads <workers>`| Minimum number or percentage of threads to run tests in |
66
66
|`--poolOptions.threads.useAtomics`| Use Atomics to synchronize threads. This can improve performance in some cases, but might cause segfault in older Node versions (default: `false`) |
67
67
|`--poolOptions.vmThreads.isolate`| Isolate tests in threads pool (default: `true`) |
68
68
|`--poolOptions.vmThreads.singleThread`| Run tests inside a single thread (default: `false`) |
69
-
|`--poolOptions.vmThreads.maxThreads <workers>`| Maximum number of threads to run tests in |
70
-
|`--poolOptions.vmThreads.minThreads <workers>`| Minimum number of threads to run tests in |
69
+
|`--poolOptions.vmThreads.maxThreads <workers>`| Maximum number or percentage of threads to run tests in |
70
+
|`--poolOptions.vmThreads.minThreads <workers>`| Minimum number or percentage of threads to run tests in |
71
71
|`--poolOptions.vmThreads.useAtomics`| Use Atomics to synchronize threads. This can improve performance in some cases, but might cause segfault in older Node versions (default: `false`) |
72
72
|`--poolOptions.vmThreads.memoryLimit <limit>`| Memory limit for VM threads pool. If you see memory leaks, try to tinker this value. |
73
73
|`--poolOptions.forks.isolate`| Isolate tests in forks pool (default: `true`) |
74
74
|`--poolOptions.forks.singleFork`| Run tests inside a single child_process (default: `false`) |
75
-
|`--poolOptions.forks.maxForks <workers>`| Maximum number of processes to run tests in |
76
-
|`--poolOptions.forks.minForks <workers>`| Minimum number of processes to run tests in |
75
+
|`--poolOptions.forks.maxForks <workers>`| Maximum number or percentage of processes to run tests in |
76
+
|`--poolOptions.forks.minForks <workers>`| Minimum number or percentage of processes to run tests in |
77
77
|`--poolOptions.vmForks.isolate`| Isolate tests in forks pool (default: `true`) |
78
78
|`--poolOptions.vmForks.singleFork`| Run tests inside a single child_process (default: `false`) |
79
-
|`--poolOptions.vmForks.maxForks <workers>`| Maximum number of processes to run tests in |
80
-
|`--poolOptions.vmForks.minForks <workers>`| Minimum number of processes to run tests in |
79
+
|`--poolOptions.vmForks.maxForks <workers>`| Maximum number or percentage of processes to run tests in |
80
+
|`--poolOptions.vmForks.minForks <workers>`| Minimum number or percentage of processes to run tests in |
81
81
|`--poolOptions.vmForks.memoryLimit <limit>`| Memory limit for VM forks pool. If you see memory leaks, try to tinker this value. |
82
82
|`--fileParallelism`| Should all test files run in parallel. Use `--no-file-parallelism` to disable (default: `true`) |
83
-
|`--maxWorkers <workers>`| Maximum number of workers to run tests in |
84
-
|`--minWorkers <workers>`| Minimum number of workers to run tests in |
83
+
|`--maxWorkers <workers>`| Maximum number or percentage of workers to run tests in |
84
+
|`--minWorkers <workers>`| Minimum number or percentage of workers to run tests in |
85
85
|`--environment <name>`| Specify runner environment, if not running in the browser (default: `node`) |
86
86
|`--passWithNoTests`| Pass when no tests are found |
87
87
|`--logHeapUsage`| Show the size of heap for each test when running in node |
* Maximum number of workers to run tests in. `poolOptions.{threads,vmThreads}.maxThreads`/`poolOptions.forks.maxForks` has higher priority.
346
+
* Maximum number or percentage of workers to run tests in. `poolOptions.{threads,vmThreads}.maxThreads`/`poolOptions.forks.maxForks` has higher priority.
347
347
*/
348
-
maxWorkers?: number
348
+
maxWorkers?: number|string
349
349
/**
350
-
* Minimum number of workers to run tests in. `poolOptions.{threads,vmThreads}.minThreads`/`poolOptions.forks.minForks` has higher priority.
350
+
* Minimum number or percentage of workers to run tests in. `poolOptions.{threads,vmThreads}.minThreads`/`poolOptions.forks.minForks` has higher priority.
351
351
*/
352
-
minWorkers?: number
352
+
minWorkers?: number|string
353
353
354
354
/**
355
355
* Should all test files run in parallel. Doesn't affect tests running in the same file.
0 commit comments