Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
coverage-diff
Advanced tools
Reports differences between two istanbul JSON code coverage summaries.
newFileCoverageThreshold
, defaults to coverageThreshold
if not passedimport fs from 'fs';
import { diff as coverageDiff } from 'coverage-diff';
const base = JSON.parse(fs.readFileSync('./base-summary.json'));
const head = JSON.parse(fs.readFileSync('./head-summary.json'));
const diff = coverageDiff.diff(base, head);
console.log(diff.diff);
console.log(diff.results);
console.log(diff.regression);
Out:
Ok | File | Lines | Branches | Functions | Statements |
---|---|---|---|---|---|
🔴 | file1 | 80% (+10%) | 14% (-30%) | 3% (+20%) | 20% (-10%) |
✅ | file2 | 20% (+10%) | 8% (-30%) | 2% (-20%) | 5% (-10%) |
FAQs
Reports differences between two istanbul JSON code coverage summaries.
The npm package coverage-diff receives a total of 8,858 weekly downloads. As such, coverage-diff popularity was classified as popular.
We found that coverage-diff 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.