@@ -674,11 +674,10 @@ added: v18.9.0
674
674
properties are supported:
675
675
* ` concurrency ` {number|boolean} If a number is provided,
676
676
then that many files would run in parallel.
677
- If truthy, it would run (number of cpu cores - 1)
678
- files in parallel.
679
- If falsy, it would only run one file at a time.
680
- If unspecified, subtests inherit this value from their parent.
681
- ** Default:** ` true ` .
677
+ If ` true ` , it would run ` os.availableParallelism() - 1 ` test files in
678
+ parallel.
679
+ If ` false ` , it would only run one test file at a time.
680
+ ** Default:** ` false ` .
682
681
* ` files ` : {Array} An array containing the list of files to run.
683
682
** Default** matching files from [ test runner execution model] [ ] .
684
683
* ` signal ` {AbortSignal} Allows aborting an in-progress test execution.
@@ -724,10 +723,9 @@ changes:
724
723
properties are supported:
725
724
* ` concurrency ` {number|boolean} If a number is provided,
726
725
then that many tests would run in parallel.
727
- If truthy, it would run (number of cpu cores - 1)
728
- tests in parallel.
726
+ If ` true ` , it would run ` os.availableParallelism() - 1 ` tests in parallel.
729
727
For subtests, it will be ` Infinity ` tests in parallel.
730
- If falsy , it would only run one test at a time.
728
+ If ` false ` , it would only run one test at a time.
731
729
If unspecified, subtests inherit this value from their parent.
732
730
** Default:** ` false ` .
733
731
* ` only ` {boolean} If truthy, and the test context is configured to run
@@ -1609,9 +1607,12 @@ changes:
1609
1607
` fn ` does not have a name.
1610
1608
* ` options ` {Object} Configuration options for the subtest. The following
1611
1609
properties are supported:
1612
- * ` concurrency ` {number} The number of tests that can be run at the same time.
1610
+ * ` concurrency ` {number|boolean|null} If a number is provided,
1611
+ then that many tests would run in parallel.
1612
+ If ` true ` , it would run all subtests in parallel.
1613
+ If ` false ` , it would only run one test at a time.
1613
1614
If unspecified, subtests inherit this value from their parent.
1614
- ** Default:** ` 1 ` .
1615
+ ** Default:** ` null ` .
1615
1616
* ` only ` {boolean} If truthy, and the test context is configured to run
1616
1617
` only ` tests, then this test will be run. Otherwise, the test is skipped.
1617
1618
** Default:** ` false ` .
0 commit comments