OptionalallowOptionalchangedCollect coverage only for files changed since a specified commit or branch.
Inherits the default value from test.changed.
OptionalcleanClean coverage results before running tests
OptionalcleanClean coverage report on watch rerun
OptionalcustomName of the module or path to a file to load the custom provider from
OptionalenabledEnables coverage collection. Can be overridden using --coverage CLI option.
OptionalexcludeList of files excluded from coverage as glob patterns.
Files are first checked against coverage.include.
See Including and excluding files from coverage report for examples.
OptionalexcludeApply exclusions again after coverage has been remapped to original sources. This is useful when your source files are transpiled and may contain source maps of non-source files.
Use this option when you are seeing files that show up in report even if they
match your coverage.exclude patterns.
OptionalhtmlDirectory of HTML coverage output to be served in UI mode and HTML reporter.
This is automatically configured for builtin reporter with html output (html, html-spa, and lcov reporters).
Use this option to override with custom coverage reporting location.
OptionalignoreSet to array of class method names to ignore for coverage
OptionalincludeList of files included in coverage as glob patterns. By default only files covered by tests are included.
See Including and excluding files from coverage report for examples.
OptionalprocessingConcurrency limit used when processing the coverage results.
Defaults to Math.min(20, os.availableParallelism?.() ?? os.cpus().length)
OptionalproviderCoverage provider to use.
OptionalreporterCoverage reporters to use. See istanbul documentation for detailed list of all reporters.
OptionalreportGenerate coverage report even when tests fail.
OptionalreportsDirectory to write coverage report to
OptionalskipDo not show files with 100% statement, branch, and function coverage
OptionalthresholdsConfigurations for thresholds
OptionalwatermarksWatermarks for statements, lines, branches and functions.
Default value is [50,80] for each property.
Collect coverage of files outside the project
root.