@putout/plugin-coverage
🐊Putout plugin helps with coverage configs
Last updated 9 months ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-coverage 
SYNC missed versions from official npm registry.

@putout/plugin-coverage NPM version

🐊Putout plugin helps with coverage configuration files, like :.nycrc.json, c8rc.json. Checkout in 🐊Putout Editor.

Install

npm i @putout/plugin-coverage -D

Rules

File rules

Config

{
    "rules": {
        "coverage/apply-camel-case": "on",
        "coverage/add-to-exclude": ["on", {
            "dismiss": ["*.spec.*"]
        }],
        "coverage/sort-ignore": "on",
        "coverage/remove-files": "on"
    }
}

apply-camel-case

Checkout in 🐊Putout Editor.

{
-   "check-coverage": true
+   "checkCoverage": true
}

add-to-exclude

{
    "exclude": [
-       "test"
+       "test",
+       *.config.*
    ]
}

sort-ignore

❌ Example of incorrect code

{
    "exclude": [
        "**/*.spec.*",
        "**/fixture",
        "test",
        ".*.*",
        "**/*.config.*"
    ]
}

βœ… Example of correct code

{
    "exclude": [
        "**/*.spec.*",
        "**/fixture",
        "**/*.config.*",
        ".*.*",
        "test"
    ]
}

remove-files

/
-β”œβ”€β”€ .nyc_output
-└── coverage

License

MIT

Current Tags

  • 3.1.0                                ...           latest (7 months ago)

8 Versions

  • 3.1.0                                ...           7 months ago
  • 3.0.0                                ...           9 months ago
  • 2.1.1                                ...           9 months ago
  • 2.1.0                                ...           9 months ago
  • 2.0.2                                ...           9 months ago
  • 2.0.1                                ...           9 months ago
  • 2.0.0                                ...           9 months ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Total 11
Today 0
This Week 0
This Month 11
Last Day 0
Last Week 2
Last Month 0
Dependencies (0)
None
Dev Dependencies (8)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE