diff --git a/docs/CLI.md b/docs/CLI.md index de66a17e6034..cadabf9d8eea 100644 --- a/docs/CLI.md +++ b/docs/CLI.md @@ -289,6 +289,10 @@ Activates notifications for test results. Good for when you don't want your cons Alias: `-o`. Attempts to identify which tests to run based on which files have changed in the current repository. Only works if you're running tests in a git/hg repository at the moment and requires a static dependency graph (ie. no dynamic requires). +### `--onlyFailures` + +Alias: `-f`. Run tests that failed in the previous execution. + ### `--openHandlesTimeout=` When `--detectOpenHandles` and `--forceExit` are _disabled_, Jest will print a warning if the process has not exited cleanly after this number of milliseconds. A value of `0` disables the warning. Defaults to `1000`. diff --git a/website/versioned_docs/version-29.4/CLI.md b/website/versioned_docs/version-29.4/CLI.md index 7a085dbaa42d..2ddfce9e5325 100644 --- a/website/versioned_docs/version-29.4/CLI.md +++ b/website/versioned_docs/version-29.4/CLI.md @@ -292,6 +292,10 @@ Activates notifications for test results. Good for when you don't want your cons Alias: `-o`. Attempts to identify which tests to run based on which files have changed in the current repository. Only works if you're running tests in a git/hg repository at the moment and requires a static dependency graph (ie. no dynamic requires). +### `--onlyFailures` + +Alias: `-f`. Run tests that failed in the previous execution. + ### `--outputFile=` Write test results to a file when the `--json` option is also specified. The returned JSON structure is documented in [testResultsProcessor](Configuration.md#testresultsprocessor-string). diff --git a/website/versioned_docs/version-29.5/CLI.md b/website/versioned_docs/version-29.5/CLI.md index 406d66dc3759..0417fe7fa9b2 100644 --- a/website/versioned_docs/version-29.5/CLI.md +++ b/website/versioned_docs/version-29.5/CLI.md @@ -292,6 +292,10 @@ Activates notifications for test results. Good for when you don't want your cons Alias: `-o`. Attempts to identify which tests to run based on which files have changed in the current repository. Only works if you're running tests in a git/hg repository at the moment and requires a static dependency graph (ie. no dynamic requires). +### `--onlyFailures` + +Alias: `-f`. Run tests that failed in the previous execution. + ### `--openHandlesTimeout=` When `--detectOpenHandles` and `--forceExit` are _disabled_, Jest will print a warning if the process has not exited cleanly after this number of milliseconds. A value of `0` disables the warning. Defaults to `1000`. diff --git a/website/versioned_docs/version-29.6/CLI.md b/website/versioned_docs/version-29.6/CLI.md index f57c83cc0988..5b5c6938a11c 100644 --- a/website/versioned_docs/version-29.6/CLI.md +++ b/website/versioned_docs/version-29.6/CLI.md @@ -292,6 +292,10 @@ Activates notifications for test results. Good for when you don't want your cons Alias: `-o`. Attempts to identify which tests to run based on which files have changed in the current repository. Only works if you're running tests in a git/hg repository at the moment and requires a static dependency graph (ie. no dynamic requires). +### `--onlyFailures` + +Alias: `-f`. Run tests that failed in the previous execution. + ### `--openHandlesTimeout=` When `--detectOpenHandles` and `--forceExit` are _disabled_, Jest will print a warning if the process has not exited cleanly after this number of milliseconds. A value of `0` disables the warning. Defaults to `1000`. diff --git a/website/versioned_docs/version-29.7/CLI.md b/website/versioned_docs/version-29.7/CLI.md index f57c83cc0988..5b5c6938a11c 100644 --- a/website/versioned_docs/version-29.7/CLI.md +++ b/website/versioned_docs/version-29.7/CLI.md @@ -292,6 +292,10 @@ Activates notifications for test results. Good for when you don't want your cons Alias: `-o`. Attempts to identify which tests to run based on which files have changed in the current repository. Only works if you're running tests in a git/hg repository at the moment and requires a static dependency graph (ie. no dynamic requires). +### `--onlyFailures` + +Alias: `-f`. Run tests that failed in the previous execution. + ### `--openHandlesTimeout=` When `--detectOpenHandles` and `--forceExit` are _disabled_, Jest will print a warning if the process has not exited cleanly after this number of milliseconds. A value of `0` disables the warning. Defaults to `1000`.