Skip to content

Commit ae8cf9a

Browse files
authored
explicit how to set n parameter to --bail (#13128)
1 parent 7d8c313 commit ae8cf9a

File tree

7 files changed

+7
-6
lines changed

7 files changed

+7
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
- `[*]` [**BREAKING**] Drop support for Node v12 and v17 ([#13033](https://github.com/facebook/jest/pull/13033))
2323
- `[docs]` Fix webpack name ([#13049](https://github.com/facebook/jest/pull/13049))
24+
- `[docs]` Explicit how to set `n` for `--bail` ([#13128](https://github.com/facebook/jest/pull/13128))
2425
- `[jest-leak-detector]` Remove support for `weak-napi` ([#13035](https://github.com/facebook/jest/pull/13035))
2526

2627
### Performance

docs/CLI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ import TOCInline from '@theme/TOCInline';
118118

119119
When you run `jest` with an argument, that argument is treated as a regular expression to match against files in your project. It is possible to run test suites by providing a pattern. Only the files that the pattern matches will be picked up and executed. Depending on your terminal, you may need to quote this argument: `jest "my.*(complex)?pattern"`. On Windows, you will need to use `/` as a path separator or escape `\` as `\\`.
120120

121-
### `--bail`
121+
### `--bail[=<n>]`
122122

123123
Alias: `-b`. Exit the test suite immediately upon `n` number of failing test suite. Defaults to `1`.
124124

website/versioned_docs/version-25.x/CLI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ import TOCInline from '@theme/TOCInline';
116116

117117
When you run `jest` with an argument, that argument is treated as a regular expression to match against files in your project. It is possible to run test suites by providing a pattern. Only the files that the pattern matches will be picked up and executed. Depending on your terminal, you may need to quote this argument: `jest "my.*(complex)?pattern"`. On Windows, you will need to use `/` as a path separator or escape `\` as `\\`.
118118

119-
### `--bail`
119+
### `--bail[=<n>]`
120120

121121
Alias: `-b`. Exit the test suite immediately upon `n` number of failing test suite. Defaults to `1`.
122122

website/versioned_docs/version-26.x/CLI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ import TOCInline from '@theme/TOCInline';
112112

113113
When you run `jest` with an argument, that argument is treated as a regular expression to match against files in your project. It is possible to run test suites by providing a pattern. Only the files that the pattern matches will be picked up and executed. Depending on your terminal, you may need to quote this argument: `jest "my.*(complex)?pattern"`. On Windows, you will need to use `/` as a path separator or escape `\` as `\\`.
114114

115-
### `--bail`
115+
### `--bail[=<n>]`
116116

117117
Alias: `-b`. Exit the test suite immediately upon `n` number of failing test suite. Defaults to `1`.
118118

website/versioned_docs/version-27.x/CLI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ import TOCInline from '@theme/TOCInline';
112112

113113
When you run `jest` with an argument, that argument is treated as a regular expression to match against files in your project. It is possible to run test suites by providing a pattern. Only the files that the pattern matches will be picked up and executed. Depending on your terminal, you may need to quote this argument: `jest "my.*(complex)?pattern"`. On Windows, you will need to use `/` as a path separator or escape `\` as `\\`.
114114

115-
### `--bail`
115+
### `--bail[=<n>]`
116116

117117
Alias: `-b`. Exit the test suite immediately upon `n` number of failing test suite. Defaults to `1`.
118118

website/versioned_docs/version-28.0/CLI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ import TOCInline from '@theme/TOCInline';
118118

119119
When you run `jest` with an argument, that argument is treated as a regular expression to match against files in your project. It is possible to run test suites by providing a pattern. Only the files that the pattern matches will be picked up and executed. Depending on your terminal, you may need to quote this argument: `jest "my.*(complex)?pattern"`. On Windows, you will need to use `/` as a path separator or escape `\` as `\\`.
120120

121-
### `--bail`
121+
### `--bail[=<n>]`
122122

123123
Alias: `-b`. Exit the test suite immediately upon `n` number of failing test suite. Defaults to `1`.
124124

website/versioned_docs/version-28.1/CLI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ import TOCInline from '@theme/TOCInline';
118118

119119
When you run `jest` with an argument, that argument is treated as a regular expression to match against files in your project. It is possible to run test suites by providing a pattern. Only the files that the pattern matches will be picked up and executed. Depending on your terminal, you may need to quote this argument: `jest "my.*(complex)?pattern"`. On Windows, you will need to use `/` as a path separator or escape `\` as `\\`.
120120

121-
### `--bail`
121+
### `--bail[=<n>]`
122122

123123
Alias: `-b`. Exit the test suite immediately upon `n` number of failing test suite. Defaults to `1`.
124124

0 commit comments

Comments
 (0)