diff --git a/doc/api/cli.md b/doc/api/cli.md index 46007c5b86b927..59318c7d9302c0 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -2254,6 +2254,17 @@ 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` + + + +> Stability: 1 - Experimental + +Instructs the test runner to bail out if a test failure occurs. +See the documentation on [test bailout][] for more details. + ### `--test-concurrency` + +> Stability: 1 - Experimental + +The `--test-bail` flag provides a way to stop 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. +Already running tests will be canceled, and no further tests will be started. +**Default:** `false`. + ## Test reporters