Skip to content

Commit d9f9aab

Browse files
seanpoultercpojer
authored andcommitted
Add #5269 to docs and change log (#5284)
1 parent 1892fbd commit d9f9aab

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
### Fixes
55

66
* `[jest-jasmine2]` Fix memory leak in snapshot reporting ([#5279](https://github.com/facebook/jest/pull/5279))
7+
* `[jest-config]` Fix breaking change in `--testPathPattern` ([#5269](https://github.com/facebook/jest/pull/5269))
78

89
## jest 22.0.5
910

docs/CLI.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ CLI options take precedence over values from the
8585
When you run `jest` with an argument, that argument is treated as a regular
8686
expression to match against files in your project. It is possible to run test
8787
suites by providing a pattern. Only the files that the pattern matches will be
88-
picked up and executed. Note: depending on your terminal, you may need to quote
89-
this argument: `jest "my.*(complex)?pattern"`.
88+
picked up and executed. Depending on your terminal, you may need to quote this
89+
argument: `jest "my.*(complex)?pattern"`. On Windows, you will need to use `/`
90+
as a path separator or escape `\` as `\\`.
9091

9192
### `--bail`
9293

@@ -276,7 +277,8 @@ Note that `column` is 0-indexed while `line` is not.
276277
### `--testPathPattern=<regex>`
277278

278279
A regexp pattern string that is matched against all tests paths before executing
279-
the test.
280+
the test. On Windows, you will need to use `/` as a path separator or escape `\`
281+
as `\\`.
280282

281283
### `--testRunner=<path>`
282284

0 commit comments

Comments
 (0)