diff --git a/CHANGELOG.md b/CHANGELOG.md index d374d3581a5e..1471765b0fd8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - `[docs]` Add custom toMatchSnapshot matcher docs ([#6837](https://github.com/facebook/jest/pull/6837)) - `[docs]` Improve the documentation regarding preset configuration ([#6864](https://github.com/facebook/jest/issues/6864)) +- `[docs]` Clarify usage of `--projects` CLI option ([#6872](https://github.com/facebook/jest/pull/6872)) ## 23.5.0 diff --git a/docs/CLI.md b/docs/CLI.md index 2ed79bea9d79..44e584f87d19 100644 --- a/docs/CLI.md +++ b/docs/CLI.md @@ -213,9 +213,9 @@ Alias: `-o`. Attempts to identify which tests to run based on which files have c Allows the test suite to pass when no files are found. -### `--projects ... ` +### `--projects ... ` -Run tests from one or more projects. +Run tests from one or more projects, found in the specified paths; also takes path globs. This option is the CLI equivalent of the [`projects`](configuration#projects-arraystring--projectconfig) configuration option. Note that if configuration files are found in the specified paths, _all_ projects specified within those configuration files will be run. ### `--reporters`