React.js5 min read
Testing React Apps with Jest and RTL
Test How Users Use It
React Testing Library encourages testing behavior, not implementation details.
Instead of checking if a component has a state variable named 'count', check if the screen displays "Count: 1" after clicking the button.