-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add tolerance option #16
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #16 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 7 7
Lines 68 69 +1
=========================================
+ Hits 68 69 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @JCorpe26!
Sorry for the belated review; added one small change request before merging this in ✨
bin/jest-it-up
Outdated
@@ -7,6 +7,12 @@ const jestItUp = require('../lib') | |||
program | |||
.option('-c, --config <path>', 'path to a Jest config file', 'jest.config.js') | |||
.option('-m, --margin <margin>', 'minimum threshold increase', parseFloat, 0) | |||
.option( | |||
'-t, --tolerance <tolerance>', | |||
'keeps the new threshold below the current coverage', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to describe the option value instead:
'keeps the new threshold below the current coverage', | |
'threshold difference from actual coverage', |
Please remember to update the README accordingly—I recommend running jest-it-up --help
and copy-pasting the output there.
582305c
to
25af4d9
Compare
@rbardini Fair shout, I have updated this :) 🤞 Should be all good now |
🎉 This PR is included in version 2.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Add the ability to provide a tolerance amount to allow a bit of wiggle room for the new coverage. So it isn't updated to the exact amount.