DEV Community

How to test implementation details with react-testing-library

Matt Crowder on March 31, 2019

If you are using enzyme to test your react components, you should consider switching to react-testing-library as soon as possible, its API is int...
Collapse
 
insanicae profile image
Poul H. Hansen

That is so neat, and really goes off to show that there are always edge cases.

Collapse
 
tamouse profile image
Tamara Temple

Just in time! We're moving to this from enzyme

Collapse
 
yyyyaaa profile image
Ha Gia Phat

why would you test implementation details? Tests should reflect the behavior only in case the implementation changes