diff --git a/CHANGELOG.md b/CHANGELOG.md index c1bf053cde4a..3f22927616f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,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)) diff --git a/docs/CLI.md b/docs/CLI.md index 079524e58d13..315b2de3c0a2 100644 --- a/docs/CLI.md +++ b/docs/CLI.md @@ -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[=]` -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 `` to override option set in configuration. ### `--debug`