Use Testing Coverage in Jest to Analyze Your Testing Suites
HTML-код
- Опубликовано: 21 мар 2023
- You've probably heard the term "testing coverage" before but have no idea how to actually calculate it. In this video, I show you how to get testing coverage in Jest and leverage your numbers to improve your tests!
a bigger text size of the code screen would be better good video anyways
I know I'm late but thanks for the feedback
I disagree completely around aiming for 100% coverage, you mentioned the "goal of your test and other developers is to understand the code", no.... it's to ensure the application functions as expected, aiming for close to 100% coverage (i aim for 95%) ensures that a small change in one part of the application most likely won't break another part of the application because you've not written enough tests...
I didn't mention aiming for 100%. I mentioned that 80% is standard. You'd go higher for more critical applications