I remember a few years ago when I got started with React I decided I needed to figure out how to test React components. I triedshallowfrom enzyme and immediately decided that I would never use it to test my React components. I've expressed this feeling on many occasions and get asked on a regular basis why I feel the way I do aboutshallowrendering and whyReact Testing Librarywill never support shallow rendering.
Why I Never Use Shallow Rendering
Get full access to this articleSubscribe now 🤗