jest-badges
Report jest coverage badges
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.