All posts by Graham Mendick

technology Graham Mendick

Why are my React Tests so Shallow?

Enzyme is a testing utility library for React. It lets you shallow render your components one level deep so you can test them in isolation. I'll show the problem with shallow rendering and what you should use instead when unit testing React…