Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
fix: the number of concurrent job with --parallel option in mocha:cli:run:helpers #4416
Description of the Change
When users run mocha with
I changed options.jobs to the number of CPU cores less 1 when options.jobs was false.
options.jobs ? options.jobs : workerpool.cpus - 1
Why should this be in core?
It's a confirmed bug as described in #4415.
Users can know exact current concurrent job count instead NaN.