☔️ Coverage
When using --coverage, Poku tries to load one of the official plugins:
History
| Version | Changes |
|---|---|
| v4.3.0 | --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
- @pokujs/monocart
- @pokujs/istanbul
- @pokujs/one-double-zero
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
npm i -D @pokujs/monocart
⚙️ Config files
mcr.config.js, mcr.config.cjs, mcr.config.mjs, mcr.config.json, mcr.config.jsonc, mcr.config.toml, mcr.config.yaml, mcr.config.yml, poku.config.js
npm i -D @pokujs/istanbul
⚙️ Config files
.nycrc, .nycrc.json, .nycrc.jsonc, .nycrc.toml, .nycrc.yaml, .nycrc.yml, poku.config.js
npm i -D @pokujs/one-double-zero
⚙️ Config files
odz.config.json, odz.config.jsonc, odz.config.toml, odz.config.yaml, odz.config.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 | ✅ | ✅ | ✅ | ✅ |
It's also possible to specify a coverage plugin, for example:
poku --coverage=@pokujs/c8poku --coverage=third-coverage-plugin
To specify a custom config file via CLI, use the --coverageConfig flag, for example:
npx poku --coverage --coverageConfig=".my-c8rc"