From ee2dd0df1e7021ccbc159edf7abd6f724ed1512d Mon Sep 17 00:00:00 2001 From: Colin Ihrig Date: Sat, 20 Jul 2024 09:26:09 -0400 Subject: [PATCH] doc: move --test-coverage-{ex,in}clude to proper location This commit moves the documentation for two CLI flags to the proper sorted location. PR-URL: https://github.com/nodejs/node/pull/53926 Reviewed-By: Richard Lau Reviewed-By: Moshe Atlow --- doc/api/cli.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/doc/api/cli.md b/doc/api/cli.md index 1812b41f327235..37b017f5adf90a 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -2008,6 +2008,40 @@ added: v20.10.0 The maximum number of test files that the test runner CLI will execute concurrently. The default value is `os.availableParallelism() - 1`. +### `--test-coverage-exclude` + + + +> Stability: 1 - Experimental + +Excludes specific files from code coverage using a glob pattern, which can match +both absolute and relative file paths. + +This option may be specified multiple times to exclude multiple glob patterns. + +If both `--test-coverage-exclude` and `--test-coverage-include` are provided, +files must meet **both** criteria to be included in the coverage report. + +### `--test-coverage-include` + + + +> Stability: 1 - Experimental + +Includes specific files in code coverage using a glob pattern, which can match +both absolute and relative file paths. + +This option may be specified multiple times to include multiple glob patterns. + +If both `--test-coverage-exclude` and `--test-coverage-include` are provided, +files must meet **both** criteria to be included in the coverage report. + ### `--test-force-exit`