diff --git a/doc/api/cli.md b/doc/api/cli.md index e8b21861d24850..b4dcd5f7eaea53 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -1441,6 +1441,16 @@ Starts the Node.js command line test runner. This flag cannot be combined with See the documentation on [running tests from the command line][] for more details. +### `--test-bail` + + + +Specifies the bailout behavior of the test runner when running tests. +See the documentation on [test bailout][] for more details. + ### `--test-name-pattern` + +```bash +node --test-bail +``` + +The `--test-bail` flag provides a way to stop the test execution +as soon as a test fails. +By enabling this flag, the test runner will exit the test suite early +when it encounters the first failing test, preventing +the execution of subsequent tests. +**Default:** `false`. + ## Test reporters