react-testing-library vs Enzyme
findBy/findByAll query - wraps waitForElement
foot gun with hooks
waitForElement()
findBy/findByAll query
does not care about implementation details
similar to our apps rendering
as it is the future
"The more your tests resemble the way your software is used, the more confidence they can give you."
Kent C. Dodds
creator of react-testing-library
state and props
users do not!
clicking a link requires test specific parameters to be passed along when simulating
Existing knowlege within the team
Use react-testing-library