
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
jest-ratchet
Advanced tools
Ratchet up code coverage - keep test coverage going only one direction -- up
Ratchet up code coverage - keep test coverage going only one direction -- up
Jest-Ratchet is a coverage watcher for Jest. Everytime a new level of coverage is reached Jest-Ratchet will automatically update the coverageThreshold.
npm
npm install jest-ratchet --dev
yarn
yarn add jest-ratchet --dev
Add jest-ratchet
to the reporters
section. And also ensure that collectCoverage
is enabled and json-summary
is added to the coverageReporters
.
{
"collectCoverage": true,
"coverageReporters": ["json", "lcov", "text", "clover", "json-summary"],
"reporters": ["default", "jest-ratchet"]
}
By default, Jest-Ratchet is aggressive with updating coverage thresholds. Every time your coverage ticks up by 0.01%, the coverageThreshold is updated. There are a couple of options dampen this behavior.
Here's how to pass configuration to Jest-Ratchet, per the Jest documentation
{
"collectCoverage": true,
"coverageReporters": ["json", "lcov", "text", "clover", "json-summary"],
"reporters": [
"default",
[
"jest-ratchet",
{ "tolerance": 2, "roundDown": true, "timeout": 5000 }
]
]
}
FAQs
Ratchet up code coverage - keep test coverage going only one direction -- up
The npm package jest-ratchet receives a total of 2,291 weekly downloads. As such, jest-ratchet popularity was classified as popular.
We found that jest-ratchet 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.