@putout/plugin-coverage
🐊Putout plugin helps with coverage configs
Last updated 2 months ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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/add-to-exclude": ["on", {
            "dismiss": ["*.spec.*"]
        }],
        "coverage/sort-ignore": "on",
        "coverage/remove-files": "on"
    }
}

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.0.0                                ...           latest (2 months ago)

7 Versions

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

Copyright 2013 - present © cnpmjs.org | Home |