Skip to main content
Version: v4.x.x

☔️ Coverage

When using --coverage, Poku tries to load one of the official plugins:

History
VersionChanges
v4.3.0
Introduce --coverage and --coverageConfigs flags.

Choose the one that best fits your needs and add it as a dev dependency. If multiple plugins are detected, Poku will prioritize them in the order listed above:

pokujs/c8
npm i -D @pokujs/c8

⚙️ Config files

.c8rc, .c8rc.json, .c8rc.jsonc, .c8rc.toml, .c8rc.yaml, .c8rc.yml, .nycrc, .nycrc.json, .nycrc.jsonc, .nycrc.toml, .nycrc.yaml, .nycrc.yml, poku.config.js


Supporteed formats by official plugins:

⚙️@pokujs/c8@pokujs/monocart@pokujs/istanbul@pokujs/one-double-zero
JSON
JS/TS
TOML
JSONC
YAML

tip

It's also possible to specify a coverage plugin, for example:

  • poku --coverage=@pokujs/c8
  • poku --coverage=third-coverage-plugin

To specify a custom config file via CLI, use the --coverageConfig flag, for example:

npx poku --coverage --coverageConfig=".my-c8rc"