$ npm install @putout/plugin-coverage
πPutout plugin helps with coverage configuration files, like :.nycrc.json, c8rc.json.
Checkout in πPutout Editor.
npm i @putout/plugin-coverage -D
{
"rules": {
"coverage/apply-camel-case": "on",
"coverage/add-to-exclude": ["on", {
"dismiss": ["*.spec.*"]
}],
"coverage/sort-ignore": "on",
"coverage/remove-files": "on"
}
}
Checkout in πPutout Editor.
{
- "check-coverage": true
+ "checkCoverage": true
}
{
"exclude": [
- "test"
+ "test",
+ *.config.*
]
}
{
"exclude": [
"**/*.spec.*",
"**/fixture",
"test",
".*.*",
"**/*.config.*"
]
}
{
"exclude": [
"**/*.spec.*",
"**/fixture",
"**/*.config.*",
".*.*",
"test"
]
}
/
-βββ .nyc_output
-βββ coverage
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE