From d1152fdad47952a05f3ae0141ed7252d21bd5611 Mon Sep 17 00:00:00 2001 From: azadgupta1 Date: Tue, 18 Nov 2025 16:15:14 +0530 Subject: [PATCH 1/2] doc: correct concurrency wording in test() documentation --- doc/api/test.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/test.md b/doc/api/test.md index 21349b46b702e8..8359771b3bf53a 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -1619,7 +1619,7 @@ changes: * `options` {Object} Configuration options for the test. The following properties are supported: * `concurrency` {number|boolean} If a number is provided, - then that many tests would run in parallel within the application thread. + then that many tests would run concurrently within the test process. If `true`, all scheduled asynchronous tests run concurrently within the thread. If `false`, only one test runs at a time. If unspecified, subtests inherit this value from their parent. @@ -3882,7 +3882,7 @@ changes: * `options` {Object} Configuration options for the subtest. The following properties are supported: * `concurrency` {number|boolean|null} If a number is provided, - then that many tests would run in parallel within the application thread. + then that many tests would run concurrently within the test process. If `true`, it would run all subtests in parallel. If `false`, it would only run one test at a time. If unspecified, subtests inherit this value from their parent. From 11fc178b778a748905b082d90b813ebf2c88e825 Mon Sep 17 00:00:00 2001 From: azadgupta1 Date: Tue, 18 Nov 2025 22:39:42 +0530 Subject: [PATCH 2/2] docs: update concurrency wording per reviewer suggestion --- doc/api/test.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/test.md b/doc/api/test.md index 8359771b3bf53a..338c18aa620bf2 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -1619,7 +1619,7 @@ changes: * `options` {Object} Configuration options for the test. The following properties are supported: * `concurrency` {number|boolean} If a number is provided, - then that many tests would run concurrently within the test process. + then that many tests would run asynchronously (they are still managed by the single-threaded event loop). If `true`, all scheduled asynchronous tests run concurrently within the thread. If `false`, only one test runs at a time. If unspecified, subtests inherit this value from their parent. @@ -3882,7 +3882,7 @@ changes: * `options` {Object} Configuration options for the subtest. The following properties are supported: * `concurrency` {number|boolean|null} If a number is provided, - then that many tests would run concurrently within the test process. + then that many tests would run asynchronously (they are still managed by the single-threaded event loop). If `true`, it would run all subtests in parallel. If `false`, it would only run one test at a time. If unspecified, subtests inherit this value from their parent.