Skip to content

Commit

Permalink
docs: nit: testNamePattern alias -t be in inline code format (#13740
Browse files Browse the repository at this point in the history
)
  • Loading branch information
bob-zs authored Jan 7, 2023
1 parent eace3a1 commit a5e256d
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
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

0 comments on commit a5e256d

Please sign in to comment.