Skip to content

Commit

Permalink
docs: Add collectCoverage to Reference (#8996)
Browse files Browse the repository at this point in the history
* docs: Add collectCoverage to Reference

Also noted how to override option set in Configuration

* docs: Add collectCoverage to CLI Reference

* docs: Move collectCoverage under coverage

* docs: Reword CHANGELOG update
  • Loading branch information
blzaugg authored and jeysal committed Oct 17, 2019
1 parent ecf46c2 commit cc74b51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
- `[*]` Add Node 12 to CI ([#8411](https://github.com/facebook/jest/pull/8411))
- `[*]` [**BREAKING**] Upgrade to Micromatch v4 ([#8852](https://github.com/facebook/jest/pull/8852))
- `[babel-plugin-jest-hoist]` [**BREAKING**] Use ESM exports ([#8874](https://github.com/facebook/jest/pull/8874))
- `[docs]` Add alias and optional boolean value to `coverage` CLI Reference ([#8996](https://github.com/facebook/jest/pull/8996))
- `[docs]` Fix broken link pointing to legacy JS file in "Snapshot Testing".
- `[docs]` Add `setupFilesAfterEnv` and `jest.setTimeout` example ([#8971](https://github.com/facebook/jest/pull/8971))
- `[jest]` [**BREAKING**] Use ESM exports ([#8874](https://github.com/facebook/jest/pull/8874))
Expand Down
4 changes: 2 additions & 2 deletions docs/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ Forces test results output highlighting even if stdout is not a TTY.

Alias: `-c`. The path to a Jest config file specifying how to find and execute tests. If no `rootDir` is set in the config, the directory containing the config file is assumed to be the rootDir for the project. This can also be a JSON-encoded value which Jest will use as configuration.

### `--coverage`
### `--coverage[=<boolean>]`

Indicates that test coverage information should be collected and reported in the output. This option is also aliased by `--collectCoverage`.
Alias: `--collectCoverage`. Indicates that test coverage information should be collected and reported in the output. Optionally pass `<boolean>` to override option set in configuration.

### `--debug`

Expand Down

0 comments on commit cc74b51

Please sign in to comment.