Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ The glob patterns Jest uses to detect test files. Please refer to the [`testMatc

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

Alias: -t. Run only tests 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.
Alias: `-t`. Run only tests 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.

:::tip

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-27.x/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ The glob patterns Jest uses to detect test files. Please refer to the [`testMatc

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

Alias: -t. Run only tests 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.
Alias: `-t`. Run only tests 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.

Note: The regex is matched against the full name, which is a combination of the test name and all its surrounding describe blocks.

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-28.x/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ The glob patterns Jest uses to detect test files. Please refer to the [`testMatc

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

Alias: -t. Run only tests 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.
Alias: `-t`. Run only tests 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.

:::tip

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-29.0/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ The glob patterns Jest uses to detect test files. Please refer to the [`testMatc

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

Alias: -t. Run only tests 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.
Alias: `-t`. Run only tests 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.

:::tip

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-29.1/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ The glob patterns Jest uses to detect test files. Please refer to the [`testMatc

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

Alias: -t. Run only tests 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.
Alias: `-t`. Run only tests 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.

:::tip

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-29.2/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ The glob patterns Jest uses to detect test files. Please refer to the [`testMatc

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

Alias: -t. Run only tests 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.
Alias: `-t`. Run only tests 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.

:::tip

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-29.3/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ The glob patterns Jest uses to detect test files. Please refer to the [`testMatc

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

Alias: -t. Run only tests 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.
Alias: `-t`. Run only tests 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.

:::tip

Expand Down