diff --git a/doc/api/cli.md b/doc/api/cli.md index 7230231decd..2a932531d4a 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -1666,25 +1666,6 @@ is highly discouraged. Stripping types inside `node_modules` is intended only for local development. -### `--experimental-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. - ### `--experimental-test-module-mocks` + +Enable code coverage collection in the test runner. If no tests are run, a +coverage report is not generated. See the documentation on +[collecting code coverage from tests][] for more details. + +The legacy `--experimental-test-coverage` flag is supported as an alias. + ### `--test-coverage-branches=threshold`