Skip to content

Commit 482302b

Browse files
avivkellertargos
authored andcommittedOct 2, 2024
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 b3708e7 commit 482302b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎doc/api/test.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,8 @@ command-line flag, code coverage is collected and statistics are reported once
431431
all tests have completed. If the [`NODE_V8_COVERAGE`][] environment variable is
432432
used to specify a code coverage directory, the generated V8 coverage files are
433433
written to that directory. Node.js core modules and files within
434-
`node_modules/` directories are not included in the coverage report. If
434+
`node_modules/` directories are, by default, not included in the coverage report.
435+
However, they can be explicity included via the [`--test-coverage-include`][] flag. If
435436
coverage is enabled, the coverage report is sent to any [test reporters][] via
436437
the `'test:coverage'` event.
437438

@@ -3268,6 +3269,7 @@ Can be used to abort test subtasks when the test has been aborted.
32683269
[`--experimental-test-coverage`]: cli.md#--experimental-test-coverage
32693270
[`--import`]: cli.md#--importmodule
32703271
[`--test-concurrency`]: cli.md#--test-concurrency
3272+
[`--test-coverage-include`]: cli.md#--test-coverage-include
32713273
[`--test-name-pattern`]: cli.md#--test-name-pattern
32723274
[`--test-only`]: cli.md#--test-only
32733275
[`--test-reporter-destination`]: cli.md#--test-reporter-destination

0 commit comments

Comments
 (0)
Please sign in to comment.