diff --git a/doc/api/cli.md b/doc/api/cli.md index 072b3b8ead55b8..e83fe2a82b2249 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -887,11 +887,28 @@ changes: description: This option can be used with `--test`. --> +> Stability: 1 - Experimental + When used in conjunction with the `node:test` module, a code coverage report is generated as part of the test runner output. If no tests are run, a coverage report is not generated. See the documentation on [collecting code coverage from tests][] for more details. +### `--check-coverage=coverage_threshold` + + + +> Stability: 1 - Experimental + +The `--check-coverage` CLI flag, used in conjunction with the `--experimental-test-coverage` commands, +enforce a specific test coverage threshold. +It is expressed as a numerical value between `0` and `100`, +representing the percentage (e.g., 80 for 80% coverage). +If the coverage falls below the threshold, the test will result in a failure. + ### `--experimental-vm-modules`