DEV Community

Discussion on: What do you think of React Testing Library?

Collapse
 
2ezpz2plzme profile image
Steven Liao

Yep. His concern was that it's too ez to not mock and then developers would put a bunch of tests into the component higher up in the tree, making it harder to maintain, whereas when shallow rendering just mocks as much as possible, encouraging to test whatever the current component does.