-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Description
Affected URL(s)
https://nodejs.org/docs/latest-v24.x/api/test.html#testname-options-fn
Description of the problem
concurrency<number>|<boolean>If a number is provided, then that many tests would run in parallel within the application thread. 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. Default: false.
Based on my understanding of the test runner, tests are executed in processes not threads. I think we should update the text here to be specific. Furthermore, I think we should change in parallel with concurrently as unless you are actually executing the tests in separate threads or process its not actually true parallelism. Similar to the way Promise.all() works, right?
I've had these docs cited to me in a claim that Node.js test runner uses worker threads for test execution, when I don't believe that is the case (and if it is then we need different doc updates).