Unit testing React components isn’t always easy. In this short article i’ll show some tricks to make our lives a little easier using Enzyme.

In a project I’m working on, we are testing each level of the components hierarchy with shallow rendering and snapshot testing. That way if something brakes in a low level component, the tests that rely on this component won’t fail and you’ll quickly be able to pinpoint the problem. …

Jenia Nemzer

Web Architect @ WellDone Software

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store