rbardini / jest-it-up

🌐📈 Automatically bump up global Jest thresholds whenever coverage goes above them
https://npm.im/jest-it-up
MIT License
64 stars 11 forks source link

Add tolerance option #16

Closed JCorpe26 closed 1 year ago

JCorpe26 commented 1 year ago

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.

New Coverage Tolerance Outcome
50 5 45
66 1 65
codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (b69f172) 100.00% compared to head (8390357) 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #16 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 7 7 Lines 68 69 +1 ========================================= + Hits 68 69 +1 ``` | [Impacted Files](https://codecov.io/gh/rbardini/jest-it-up/pull/16?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Rafael+Bardini) | Coverage Δ | | |---|---|---| | [lib/getNewThresholds.js](https://codecov.io/gh/rbardini/jest-it-up/pull/16?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Rafael+Bardini#diff-bGliL2dldE5ld1RocmVzaG9sZHMuanM=) | `100.00% <100.00%> (ø)` | | | [lib/index.js](https://codecov.io/gh/rbardini/jest-it-up/pull/16?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Rafael+Bardini#diff-bGliL2luZGV4Lmpz) | `100.00% <100.00%> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Rafael+Bardini). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Rafael+Bardini)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

JCorpe26 commented 1 year ago

@rbardini Fair shout, I have updated this :) 🤞 Should be all good now

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 2.2.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: