diff --git a/doc/api/cli.md b/doc/api/cli.md index a5f168a0b4f86d..48697a801b40c6 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -1228,6 +1228,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-coverage` + + + +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. + ### `--test-name-pattern`