
Security News
Rust RFC Proposes a Security Tab on crates.io for RustSec Advisories
Rustâs crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.
jest-coverage-badges
Advanced tools
Create a group of coverage badge
Creates a group of code coverage badges like the following:
Currently just reads from Istanbul's JSON summary reporter and downloads a badge from https://shields.io/ for each jest coverage type (statement, branch, functions, lines). Like this:
This package is an extension of make-coverage-badge, but this one creates all the types of coverage.
Install jest-coverage-badges in your project or global
Project (in your project folder):
npm install --save jest-coverage-badges
Global:
npm install --global jest-coverage-badges
Configure Jest (in package.json):
(optional: "text" and "lcov")
"jest": {
"coverageReporters": [
"json-summary",
"text",
"lcov"
]
}
If you installed in your project, you can create a script to run it, for example:
"scripts": {
"test:coverage": "npm test -- --coverage",
"test:badges": "npm run test:coverage && jest-coverage-badges"
}
Run npm test -- --coverage
Run jest-coverage-badges (or just run: npm run test:badges)
Resulting in badges:
./coverage/badge-statements.svg./coverage/badge-lines.svg./coverage/badge-functions.svg./coverage/badge-branches.svgExample:
$ jest-coverage-badges input "./cov" output "./badges"
After this you can add into Github readme (for example) :smiley:
We have great companies like coveralls and codecov, but it's paid for private repositories. If this package we can add badges in our readme by creating the badges (this can be run at your build, upload to a store and consume in the readme or the website).
Š 2018 [Main Author of Adaptations] Pamela Peixinho git@pamepeixinho.com (https://pamepeixinho.github.io)
FAQs
Create a group of coverage badges from jest
We found that jest-coverage-badges demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Rustâs crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.

Security News
/Research
Socket found a Rust typosquat (finch-rust) that loads sha-rust to steal credentials, using impersonation and an unpinned dependency to auto-deliver updates.

Research
/Security Fundamentals
A pair of typosquatted Go packages posing as Googleâs UUID library quietly turn helper functions into encrypted exfiltration channels to a paste site, putting developer and CI data at risk.