litee / jest-coverage-thresholds-bumper Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
There is an example of how it works with different values?
The tool currently removes a trailing newline from package.json
, which is probably unintended.
The output of the bumper is quite verbose when printed after every test run. It would be nice to have a --silent
flag to prevent output.
My use-case is that I'd like to use this tool as a part of a pre-commit hook, but I have no way of knowing (without parsing the messages returned) if the coverage changed, and I should git add package.json
during the hook.
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
'./src/path1': {
branches: 55,
functions: 60,
lines: 59,
statements: 60,
},
'./src/path2': {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
},
Ignoring "lines" coverage threshold because new value 29.75 is less or equal to current value 100.
Ignoring "statements" coverage threshold because new value 30.2 is less or equal to current value 100.
Ignoring "branches" coverage threshold because new value 21.72 is less or equal to current value 100.
Ignoring "functions" coverage threshold because new value 21.53 is less or equal to current value 100.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.