Skip to content

Commit

Permalink
docs: os.cpu() should be os.cpus() (#4634)
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX authored Dec 1, 2023
1 parent 8385c98 commit ceca93d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,7 @@ Watermarks for statements, lines, branches and functions. See [istanbul document
#### coverage.processingConcurrency

- **Type:** `boolean`
- **Default:** `Math.min(20, os.cpu().length)`
- **Default:** `Math.min(20, os.cpus().length)`
- **Available for providers:** `'v8' | 'istanbul'`
- **CLI:** `--coverage.processingConcurrency=<number>`

Expand Down
2 changes: 1 addition & 1 deletion packages/vitest/src/types/coverage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export interface BaseCoverageOptions {

/**
* Concurrency limit used when processing the coverage results.
* Defaults to `Math.min(20, os.cpu().length)`
* Defaults to `Math.min(20, os.cpus().length)`
*/
processingConcurrency?: number
}
Expand Down

0 comments on commit ceca93d

Please sign in to comment.