diff --git a/doc/api/cli.md b/doc/api/cli.md index f590ebd0c89deb..88b4d5a9827f0a 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -1507,6 +1507,18 @@ 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-name-pattern` + +> Stability: 1 - Experimental + +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