← Home · ↑ June 2015 · Bookmark #25761

Unit testing React components without a DOM – simonsmith.io – Portfolio and blog of a London based front-end web developer

the idea of shallow rendering is to instantiate a component and get the result of its render method, which is a ReactElement. From here you can do things like check its props and children and verify it works as expected.
Saved on