by senoroink · 8y ago · 0 comments
I fixed this in a new project by starting with jest [1] and failing the CI if the test coverage wasn't at 100%.
This is horrible advice and should never be followed.
That being said, we do something similar where we require 80% coverage.
100% goes into "change detecting test" territory. There's also the time aspect: going from 0-70 is not hard, 70-100 is extremely time consuming, and often not worth the effort.
Monitoring is a way more efficient tool at catching issues.