diff --git a/CHANGELOG.md b/CHANGELOG.md index 4093c63ceafb..925911127054 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -114,6 +114,7 @@ - `[jest-haste-map]` Refactor `dependencyExtractor` and tests ([#7385](https://github.com/facebook/jest/pull/7385)) - `[docs]` Clarify conditional setting of `NODE_ENV` ([#7369](https://github.com/facebook/jest/pull/7369)) - `[*]` Standardize file names ([#7316](https://github.com/facebook/jest/pull/7316), [#7266](https://github.com/facebook/jest/pull/7266), [#7238](https://github.com/facebook/jest/pull/7238), [#7314](https://github.com/facebook/jest/pull/7314)) +- `[docs]` Add `testPathIgnorePatterns` in CLI documentation ([#7440](https://github.com/facebook/jest/pull/7440)) ### Performance diff --git a/docs/CLI.md b/docs/CLI.md index 9c15b7273f59..95ae33e053d5 100644 --- a/docs/CLI.md +++ b/docs/CLI.md @@ -268,6 +268,10 @@ Note that `column` is 0-indexed while `line` is not. A regexp pattern string that is matched against all tests paths before executing the test. On Windows, you will need to use `/` as a path separator or escape `\` as `\\`. +### `--testPathIgnorePatterns=[array]` + +An array of regexp pattern strings that is tested against all tests paths before executing the test. Contrary to `--testPathPattern`, it will only run those test with a path that does not match with the provided regexp expressions. + ### `--testRunner=` Lets you specify a custom test runner.