File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -474,7 +474,8 @@ command-line flag, code coverage is collected and statistics are reported once
474
474
all tests have completed. If the [ ` NODE_V8_COVERAGE ` ] [ ] environment variable is
475
475
used to specify a code coverage directory, the generated V8 coverage files are
476
476
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
478
479
coverage is enabled, the coverage report is sent to any [ test reporters] [ ] via
479
480
the ` 'test:coverage' ` event.
480
481
@@ -3507,6 +3508,7 @@ Can be used to abort test subtasks when the test has been aborted.
3507
3508
[ `--experimental-test-snapshots` ] : cli.md#--experimental-test-snapshots
3508
3509
[ `--import` ] : cli.md#--importmodule
3509
3510
[ `--test-concurrency` ] : cli.md#--test-concurrency
3511
+ [ `--test-coverage-include` ] : cli.md#--test-coverage-include
3510
3512
[ `--test-name-pattern` ] : cli.md#--test-name-pattern
3511
3513
[ `--test-only` ] : cli.md#--test-only
3512
3514
[ `--test-reporter-destination` ] : cli.md#--test-reporter-destination
You can’t perform that action at this time.
0 commit comments