OptionalallowOptionalcleanClean coverage results before running tests
OptionalcleanClean coverage report on watch rerun
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.
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)
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.