Skip to content

[node:test] concurrency type and default value #45643

@Semigradsky

Description

@Semigradsky

Affected URL(s)

https://nodejs.org/docs/latest-v18.x/api/test.html

Description of the problem

By https://nodejs.org/docs/latest-v18.x/api/test.html#testname-options-fn we have concurrency field in options which can be number or boolean with defaut value false.
image


By https://nodejs.org/docs/latest-v18.x/api/test.html#contexttestname-options-fn we have concurrency field in options which can be only number with defaut value 1.
image
But looks like options should be the same:
https://github.com/nodejs/node/blob/v18.x/lib/internal/test_runner/test.js#L126-L131


By https://nodejs.org/docs/latest-v18.x/api/test.html#runoptions we have concurrency field in options which can be number or boolean with defaut value true.
image
Should the default value be different from that in test?

Metadata

Metadata

Assignees

Labels

docIssues and PRs related to the documentations.good first issueIssues that are suitable for first-time contributors.test_runnerIssues and PRs related to the test runner subsystem.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions