Skip to content

Commit e2c2ffd

Browse files
committed
explicit how to set n parameter to --bail
The equal sign is required between `--bail` and `n`, otherwise the number `n` will be used as a test file filter.
1 parent 760dd21 commit e2c2ffd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

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

2020
- `[*]` [**BREAKING**] Drop support for Node v12 and v17 ([#13033](https://github.com/facebook/jest/pull/13033))
2121
- `[docs]` Fix webpack name ([#13049](https://github.com/facebook/jest/pull/13049))
22+
- `[docs]` Explicit how to set `n` for `--bail` ([#xxx](https://github.com/facebook/jest/pull/xxx))
2223
- `[jest-leak-detector]` Remove support for `weak-napi` ([#13035](https://github.com/facebook/jest/pull/13035))
2324

2425
### 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

0 commit comments

Comments
 (0)