Skip to content

Commit f162044

Browse files
joshmorelcpojer
authored andcommitted
Document testNamePattern example (#4732) (#4734)
1 parent d440ea8 commit f162044

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/CLI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ Prevent tests from printing messages through the console.
187187

188188
### `--testNamePattern=<regex>`
189189

190-
Alias: `-t`. Run only tests with a name that matches the regex.
190+
Alias: `-t`. Run only tests and test suites with a name that matches the regex. For example, suppose you want to run only tests related to authorization which will have names like `"GET /api/posts with auth"`, then you can use `jest -t=auth`.
191191

192192
### `--testPathPattern=<regex>`
193193

0 commit comments

Comments
 (0)