Skip to content

Commit 042fddd

Browse files
Update docs
1 parent de9edca commit 042fddd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/CLI.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,11 +481,11 @@ The regex is matched against the full name, which is a combination of the test n
481481

482482
### `--testPathIgnorePatterns=<regex>|[array]`
483483

484-
A single or array of regexp pattern strings that are tested against all tests paths before executing the test. Contrary to `--testPathPattern`, it will only run those tests with a path that does not match with the provided regexp expressions.
484+
A single or array of regexp pattern strings that are tested against all tests paths before executing the test. Contrary to `--testPathPatterns`, it will only run those tests with a path that does not match with the provided regexp expressions.
485485

486486
To pass as an array use escaped parentheses and space delimited regexps such as `\(/node_modules/ /tests/e2e/\)`. Alternatively, you can omit parentheses by combining regexps into a single regexp like `/node_modules/|/tests/e2e/`. These two examples are equivalent.
487487

488-
### `--testPathPattern=<regex>`
488+
### `--testPathPatterns=<regex>`
489489

490490
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 `\\`.
491491

docs/WatchPlugins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ For stability and safety reasons, only part of the global configuration keys can
172172
- [`onlyFailures`](configuration#onlyfailures-boolean)
173173
- [`reporters`](configuration#reporters-arraymodulename--modulename-options)
174174
- [`testNamePattern`](cli#--testnamepatternregex)
175-
- [`testPathPatterns`](cli#--testpathpatternregex)
175+
- [`testPathPatterns`](cli#--testpathpatternsregex)
176176
- [`updateSnapshot`](cli#--updatesnapshot)
177177
- [`verbose`](configuration#verbose-boolean)
178178

packages/jest-util/Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ Used to set properties with specified values within a global object. It is desig
7878

7979
It defines constants and conditional values for handling platform-specific behaviors in a terminal environment. It determines if the current platform is Windows ('win32') and sets up constants for various symbols and terminal screen clearing escape sequences accordingly, ensuring proper display and behavior on both Windows and non-Windows operating systems.
8080

81-
## `testPathPatternToRegExp`
81+
## `TestPathPatterns`
8282

83-
This function is used for consistency when serializing/deserializing global configurations and ensures that consistent regular expressions are produced for matching test paths.
83+
This class takes test patterns and provides the API for deciding if a test matches any of the patterns.
8484

8585
## `tryRealpath`
8686

0 commit comments

Comments
 (0)