Effective React Testing

What you'll learn

  • principles of effective testing
  • abstractions of testing and their tradeoffs
  • recommended libraries to use

Tips #1: Test Code at "Right" Level of Isolation

Tips #2: Keep Your Test Moderately Dry

Tips #3: Use jest-dom to Make More Declarative Assertions

Tips #4: Use user-event to Simulate User Behavior

Issue on this page? Report here