@@ -678,11 +678,10 @@ added:
678
678
properties are supported:
679
679
* ` concurrency ` {number|boolean} If a number is provided,
680
680
then that many files would run in parallel.
681
- If truthy, it would run (number of cpu cores - 1)
682
- files in parallel.
683
- If falsy, it would only run one file at a time.
684
- If unspecified, subtests inherit this value from their parent.
685
- ** Default:** ` true ` .
681
+ If ` true ` , it would run ` os.availableParallelism() - 1 ` test files in
682
+ parallel.
683
+ If ` false ` , it would only run one test file at a time.
684
+ ** Default:** ` false ` .
686
685
* ` files ` : {Array} An array containing the list of files to run.
687
686
** Default** matching files from [ test runner execution model] [ ] .
688
687
* ` signal ` {AbortSignal} Allows aborting an in-progress test execution.
@@ -728,10 +727,9 @@ changes:
728
727
properties are supported:
729
728
* ` concurrency ` {number|boolean} If a number is provided,
730
729
then that many tests would run in parallel.
731
- If truthy, it would run (number of cpu cores - 1)
732
- tests in parallel.
730
+ If ` true ` , it would run ` os.availableParallelism() - 1 ` tests in parallel.
733
731
For subtests, it will be ` Infinity ` tests in parallel.
734
- If falsy , it would only run one test at a time.
732
+ If ` false ` , it would only run one test at a time.
735
733
If unspecified, subtests inherit this value from their parent.
736
734
** Default:** ` false ` .
737
735
* ` only ` {boolean} If truthy, and the test context is configured to run
@@ -1645,9 +1643,12 @@ changes:
1645
1643
` fn ` does not have a name.
1646
1644
* ` options ` {Object} Configuration options for the subtest. The following
1647
1645
properties are supported:
1648
- * ` concurrency ` {number} The number of tests that can be run at the same time.
1646
+ * ` concurrency ` {number|boolean|null} If a number is provided,
1647
+ then that many tests would run in parallel.
1648
+ If ` true ` , it would run all subtests in parallel.
1649
+ If ` false ` , it would only run one test at a time.
1649
1650
If unspecified, subtests inherit this value from their parent.
1650
- ** Default:** ` 1 ` .
1651
+ ** Default:** ` null ` .
1651
1652
* ` only ` {boolean} If truthy, and the test context is configured to run
1652
1653
` only ` tests, then this test will be run. Otherwise, the test is skipped.
1653
1654
** Default:** ` false ` .
0 commit comments