jest-badges

Report jest coverage badges

Usage no npm install needed!

<script type="module">
  import jestBadges from 'https://cdn.skypack.dev/jest-badges';
</script>

README

jest-badges

ci npm Size

Report jest coverage badges

100 89.99 79.99

Install

npm install -D jest-badges
# or
yarn add -D jest-badges

Use

Configure Jest (in package.json):

"jest": {
  "coverageReporters": [
    "text",
    "lcov",
    "jest-badges"
  ]
}

Or, in jest.config.js:

module.exports = {
  coverageReporters: [
    "text",
    "lcov",
    // ... other reporters
    "jest-badges",
  ],
};

License

jest-badges is released under the MIT License. See the bundled LICENSE file for details.