diff --git a/CHANGELOG.md b/CHANGELOG.md index 64b83d253735..9f07722adb3b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -112,6 +112,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.