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

Rounding? #17

Closed Twipped closed 9 months ago

Twipped commented 1 year ago

I'd like to have it only bump coverage numbers down to the nearest whole value. Is there an option for this that I'm not seeing? Threshold appears to still set it to the thousandths place once you cross the threshold.

We're having a lot of issues with merge conflicts on the jest config because the coverage values change for every single PR.

rbardini commented 1 year ago

There's no option for rounding. Maybe a reasonable default (e.g. two digits) would be enough?

aschillio commented 1 year ago

I have the exact same issue, any workaround on this ?

rbardini commented 1 year ago

A workaround is to define a higher margin, so that thresholds are only increased when they go above that value.