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!

Комментарии • 4

  • @shivankkunwar9669
    @shivankkunwar9669 6 месяцев назад +2

    a bigger text size of the code screen would be better good video anyways

    • @bitsnbotsai
      @bitsnbotsai  2 месяца назад

      I know I'm late but thanks for the feedback

  • @JlNGLEZ
    @JlNGLEZ 5 месяцев назад +1

    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...

    • @bitsnbotsai
      @bitsnbotsai  2 месяца назад

      I didn't mention aiming for 100%. I mentioned that 80% is standard. You'd go higher for more critical applications