From 676ebba407c89fb7bbc1ff9c3a6baaff76b15c45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ngel=20Paredes?= Date: Fri, 30 Nov 2018 13:21:28 +0100 Subject: [PATCH 1/2] Update CLI docummentation testPathIgnorePatterns exist as part of the SearchSource but it is not documented. --- docs/CLI.md | 4 ++++ 1 file changed, 4 insertions(+) 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. From 129cb3ce5cf12709841520d4c2f87d440bf9cd3d Mon Sep 17 00:00:00 2001 From: Angel Paredes Barato Date: Mon, 3 Dec 2018 08:55:18 +0100 Subject: [PATCH 2/2] Update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) 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