Optional100OptionalallOptionalallowOptionalbranchesPercentage of branches that must be covered for the check to pass.
This setting is ignored if option 100 is used.
Optionalc8Path to c8 JSON configuration file.
If not provided, c8js searches for files named '.c8rc', '.c8rc.json', '.nycrc', or
'.nycrc.json', starting from cwd and walking up the filesystem tree.
This setting is ignored if option useC8Config is set to false.
OptionalcwdCurrent working directory of the subprocess, project root of reports and base directory for all relative paths. Must be an absolute path.
OptionalexcludeGlob patterns matching files that should be excluded from coverage.
OptionalexcludeWhether to apply exclusion logic after source maps are used to remap compiled to original source files, or before.
OptionalexcludeWhether or not to exclude all 'node_module' folders.
OptionalextensionOnly files matching these extensions will be included in coverage.
OptionalfunctionsPercentage of functions that must be covered for the check to pass.
This setting is ignored if option 100 is used.
OptionalincludeGlob patterns matching files that should be included in coverage. An empty array matches all files.
OptionallinesPercentage of lines that must be covered for the check to pass.
This setting is ignored if option 100 is used.
OptionalmergeMerges all V8 coverage reports asynchronously and incrementally to avoid OOM issues.
OptionalomitOptionalperChecks thresholds on a per-file basis.
OptionalreporterOptionalreportsDirectory where coverage reports will be output to.
The specified directory is ignored if none of the selected reports writes to disk.
This option is used to determine the location of tempDirectory, if
not specified.
OptionalresolveOptionalskipOptionalsrcOverrides cwd as the location where source files are looked for when the option all
is specified.
This allows for workspaces spanning multiple projects.
OptionalstatementsPercentage of statements that must be covered for the check to pass.
This setting is ignored if option 100 is used.
OptionaltempDirectory where temporary V8 coverage files are written to and read from.
This directory will be created if it does not exist.
Defaults to a subdirectory named 'tmp' in the directory specified by
reportsDirectory.
OptionaluseIf false, c8js will not load c8 options from a c8 section in 'package.json', or from a
JSON configuration file on disk.
Optionalwrapper
Fails if coverage falls below 100%.