Skip to content

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

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

docIssues and PRs related to Node.js documentation.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