Skip to content

Commit c499913

Browse files
avivkellerRafaelGSS
authored andcommitted
doc: fix information about including coverage files
PR-URL: #54527 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 33a6b3c commit c499913

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/api/test.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,8 @@ command-line flag, code coverage is collected and statistics are reported once
474474
all tests have completed. If the [`NODE_V8_COVERAGE`][] environment variable is
475475
used to specify a code coverage directory, the generated V8 coverage files are
476476
written to that directory. Node.js core modules and files within
477-
`node_modules/` directories are not included in the coverage report. If
477+
`node_modules/` directories are, by default, not included in the coverage report.
478+
However, they can be explicity included via the [`--test-coverage-include`][] flag. If
478479
coverage is enabled, the coverage report is sent to any [test reporters][] via
479480
the `'test:coverage'` event.
480481

@@ -3497,6 +3498,7 @@ Can be used to abort test subtasks when the test has been aborted.
34973498
[`--experimental-test-snapshots`]: cli.md#--experimental-test-snapshots
34983499
[`--import`]: cli.md#--importmodule
34993500
[`--test-concurrency`]: cli.md#--test-concurrency
3501+
[`--test-coverage-include`]: cli.md#--test-coverage-include
35003502
[`--test-name-pattern`]: cli.md#--test-name-pattern
35013503
[`--test-only`]: cli.md#--test-only
35023504
[`--test-reporter-destination`]: cli.md#--test-reporter-destination

0 commit comments

Comments
 (0)