@@ -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
* ` setup ` {Function} A function that accepts the ` TestsStream ` instance
@@ -721,10 +720,9 @@ changes:
721
720
properties are supported:
722
721
* ` concurrency ` {number|boolean} If a number is provided,
723
722
then that many tests would run in parallel.
724
- If truthy, it would run (number of cpu cores - 1)
725
- tests in parallel.
723
+ If ` true ` , it would run ` os.availableParallelism() - 1 ` tests in parallel.
726
724
For subtests, it will be ` Infinity ` tests in parallel.
727
- If falsy , it would only run one test at a time.
725
+ If ` false ` , it would only run one test at a time.
728
726
If unspecified, subtests inherit this value from their parent.
729
727
** Default:** ` false ` .
730
728
* ` only ` {boolean} If truthy, and the test context is configured to run
@@ -1592,9 +1590,12 @@ changes:
1592
1590
` fn ` does not have a name.
1593
1591
* ` options ` {Object} Configuration options for the subtest. The following
1594
1592
properties are supported:
1595
- * ` concurrency ` {number} The number of tests that can be run at the same time.
1593
+ * ` concurrency ` {number|boolean|null} If a number is provided,
1594
+ then that many tests would run in parallel.
1595
+ If ` true ` , it would run all subtests in parallel.
1596
+ If ` false ` , it would only run one test at a time.
1596
1597
If unspecified, subtests inherit this value from their parent.
1597
- ** Default:** ` 1 ` .
1598
+ ** Default:** ` null ` .
1598
1599
* ` only ` {boolean} If truthy, and the test context is configured to run
1599
1600
` only ` tests, then this test will be run. Otherwise, the test is skipped.
1600
1601
** Default:** ` false ` .
0 commit comments