Engineering Manager at Workpath·

With ongoing refactors from Class to function components we also realized that Enzyme was not what we wanted. Instead of testing internals (like component state) we opted to go for a more user centric approach in our integration tests.

It also helps that react-testing-libraries is more straightforward and intuitive to understand for engineers than Enzyme. It's really just rendering into a DOM instead of making decisions about shallow and mount rendering.

So far we are very happy about that decision. Even Juniors love to work with it and regularly are excited to write and contribute to better integration tests.

READ LESS
4 upvotes·20.2K views
Avatar of Savio van Hoi

Savio van Hoi

Engineering Manager at Workpath