diff --git a/docs/Configuration.md b/docs/Configuration.md index 1ca9a15e1341..074867fa0f1a 100644 --- a/docs/Configuration.md +++ b/docs/Configuration.md @@ -1129,6 +1129,12 @@ Default: `1000` Print a warning indicating that there are probable open handles if Jest does not exit cleanly this number of milliseconds after it completes. Use `0` to disable the warning. +### `passWithNoTests` \[boolean] + +Default: `false` + +The equivalent of the [`--passWithNoTests`](CLI.md#--passwithnotests) flag allows the test suite to pass even when no test files are found. + ### `preset` \[string] Default: `undefined` diff --git a/website/versioned_docs/version-29.4/Configuration.md b/website/versioned_docs/version-29.4/Configuration.md index b1ffa6a110b0..ea11815d5af0 100644 --- a/website/versioned_docs/version-29.4/Configuration.md +++ b/website/versioned_docs/version-29.4/Configuration.md @@ -1085,6 +1085,12 @@ Specifies notification mode. Requires `notify: true`. - `success-change`: send a notification when tests pass or once when it fails. - `failure-change`: send a notification when tests fail or once when it passes. +### `passWithNoTests` \[boolean] + +Default: `false` + +The equivalent of the [`--passWithNoTests`](CLI.md#--passwithnotests) flag allows the test suite to pass even when no test files are found. + ### `preset` \[string] Default: `undefined` diff --git a/website/versioned_docs/version-29.5/Configuration.md b/website/versioned_docs/version-29.5/Configuration.md index 77e9ee87564c..8b55c1caff70 100644 --- a/website/versioned_docs/version-29.5/Configuration.md +++ b/website/versioned_docs/version-29.5/Configuration.md @@ -1091,6 +1091,12 @@ Default: `1000` Print a warning indicating that there are probable open handles if Jest does not exit cleanly this number of milliseconds after it completes. Use `0` to disable the warning. +### `passWithNoTests` \[boolean] + +Default: `false` + +The equivalent of the [`--passWithNoTests`](CLI.md#--passwithnotests) flag allows the test suite to pass even when no test files are found. + ### `preset` \[string] Default: `undefined` diff --git a/website/versioned_docs/version-29.6/Configuration.md b/website/versioned_docs/version-29.6/Configuration.md index bd0b75773c5d..15707206fc71 100644 --- a/website/versioned_docs/version-29.6/Configuration.md +++ b/website/versioned_docs/version-29.6/Configuration.md @@ -1091,6 +1091,12 @@ Default: `1000` Print a warning indicating that there are probable open handles if Jest does not exit cleanly this number of milliseconds after it completes. Use `0` to disable the warning. +### `passWithNoTests` \[boolean] + +Default: `false` + +The equivalent of the [`--passWithNoTests`](CLI.md#--passwithnotests) flag allows the test suite to pass even when no test files are found. + ### `preset` \[string] Default: `undefined` diff --git a/website/versioned_docs/version-29.7/Configuration.md b/website/versioned_docs/version-29.7/Configuration.md index bd0b75773c5d..15707206fc71 100644 --- a/website/versioned_docs/version-29.7/Configuration.md +++ b/website/versioned_docs/version-29.7/Configuration.md @@ -1091,6 +1091,12 @@ Default: `1000` Print a warning indicating that there are probable open handles if Jest does not exit cleanly this number of milliseconds after it completes. Use `0` to disable the warning. +### `passWithNoTests` \[boolean] + +Default: `false` + +The equivalent of the [`--passWithNoTests`](CLI.md#--passwithnotests) flag allows the test suite to pass even when no test files are found. + ### `preset` \[string] Default: `undefined`