Optional allfalse
Optional allowCollect coverage of files outside the project root.
false
Optional cleanClean coverage results before running tests
true
Optional cleanClean coverage report on watch rerun
true
Optional enabledEnables coverage collection. Can be overridden using --coverage CLI option.
false
Optional excludeList of files excluded from coverage as glob patterns
Optional extensionExtensions for files to be included in coverage
['.js', '.cjs', '.mjs', '.ts', '.tsx', '.jsx', '.vue', '.svelte', '.marko']
Optional includeList of files included in coverage as glob patterns
['**']
Optional processingConcurrency limit used when processing the coverage results.
Defaults to Math.min(20, os.availableParallelism?.() ?? os.cpus().length)
Optional reportGenerate coverage report even when tests fail.
false
Optional reporterCoverage reporters to use. See istanbul documentation for detailed list of all reporters.
['text', 'html', 'clover', 'json']
Optional reportsDirectory to write coverage report to
Optional skipDo not show files with 100% statement, branch, and function coverage
false
Optional thresholdsConfigurations for thresholds
{
// Thresholds for all files
functions: 95,
branches: 70,
perFile: true,
autoUpdate: true,
// Thresholds for utilities
'src/utils/**.ts': {
lines: 100,
statements: 95,
}
}
Optional watermarksWatermarks for statements, lines, branches and functions.
Default value is [50,80] for each property.
Optional branches?: [number, number]Optional functions?: [number, number]Optional lines?: [number, number]Optional statements?: [number, number]Generated using TypeDoc
Whether to include all files, including the untested ones into report