4 ms·
https://jestjs.io/docs/configuration#coveragethreshold-object https://jestjs.io/docs/configuration#coveragethreshold-objec... It is absolutely possible to set
by dimmke 4y ago
https://jestjs.io/docs/configuration#coveragethreshold-object https://jestjs.io/docs/configuration#coveragethreshold-objec...
It is absolutely possible to set the coverage threshold in Jest to 100% for all categories and they are set to that in the codebase I worked on. I would spend hours trying to that last 0.02% covered sometimes.
- latchkey 4y agoThe mythical portion of the number is that last 0.02%... the stuff that is just extra work for no logical benefit. It does make me wonder why it would take you hours to do that though... was the code that complicated to test for some reason?
- dimmke 4y agoYes, it was. It used a very obscure language feature of JavaScript. I won't get more detailed than that.
- latchkey 4y agoI still don't understand why that would cause testing to be hard, but since you won't explain it... I guess it leaves me thinking the problem might not be entirely them.