MediumConceptTesting
How does React Testing Library encourage testing?
What a good answer covers
It queries elements the way users find them (by role and label) and asserts on visible behaviour rather than implementation details such as component state.
PreviousWhat is the testing pyramid?Next What causes flaky end-to-end tests and how do you reduce them?