From 191da7bdd55a45e5eb598082ac4690e730ddcfab Mon Sep 17 00:00:00 2001 From: Adrien Dorsaz Date: Fri, 12 Aug 2022 22:42:42 +0200 Subject: [PATCH] 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. --- CHANGELOG.md | 1 + docs/CLI.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 02d6f94c4885..482e20c5e4f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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` ([#13128](https://github.com/facebook/jest/pull/13128)) - `[jest-leak-detector]` Remove support for `weak-napi` ([#13035](https://github.com/facebook/jest/pull/13035)) ### Performance diff --git a/docs/CLI.md b/docs/CLI.md index b070f975a2dd..6b9d08aa861b 100644 --- a/docs/CLI.md +++ b/docs/CLI.md @@ -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`.