DEV Community

Discussion on: Enzyme or react-testing-library and why?

Collapse
 
harkinj profile image
harkinj

The more u mock the less confidence u will have that all is well in the app/component.
I'd favor more integration type tests (that do less mocking , perhaps only mock out network/rest api cals) over 'unit' tests. As very unit versus integration is a thorny subject :)

Collapse
 
yuritoledo profile image
Yuri Toledo

have u any example ?

Collapse
 
harkinj profile image
harkinj

Favour Integration Tests - great article by the famous Kent C Dodds. His article says it better than me :)

Thread Thread
 
jdsandifer profile image
J.D. Sandifer

I think that article moved here: Write tests. Not too many. Mostly integration.