diff --git a/doc/api/cli.md b/doc/api/cli.md index b1a0d674ca4ded..d5cb96aa4da9c9 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -2701,6 +2701,21 @@ added: v22.8.0 Require a minimum percent of covered lines. If code coverage does not reach the threshold specified, the process will exit with code `1`. +### `--test-coverage-statements=threshold` + + + +> Stability: 1 - Experimental + +Require a minimum percent of covered statements. If code coverage does not reach +the threshold specified, the process will exit with code `1`. + +Statement coverage uses acorn to parse source files and extract statement +nodes from the AST. The V8 coverage ranges are then mapped to these statements +to determine which ones were executed. + ### `--test-force-exit`