Skip to content

Commit

Permalink
explicit how to set n parameter to --bail
Browse files Browse the repository at this point in the history
The equal sign is required between `--bail` and `n`, otherwise the number `n` will be used as a test file filter.
  • Loading branch information
Trim committed Aug 12, 2022
1 parent 760dd21 commit e2c2ffd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -19,6 +19,7 @@

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

### Performance
Expand Down
2 changes: 1 addition & 1 deletion docs/CLI.md
Expand Up @@ -118,7 +118,7 @@ import TOCInline from '@theme/TOCInline';

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 `\\`.

### `--bail`
### `--bail=n`

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

Expand Down

0 comments on commit e2c2ffd

Please sign in to comment.