# Why I Never Use Shallow Rendering

DevFeed: [Why I Never Use Shallow Rendering](<https://devfeed.tech/articles/why-i-never-use-shallow-rendering-51922.md>)

Original publisher: [Read original article](<https://kentcdodds.com/blog/why-i-never-use-shallow-rendering>)

Published: 2018-07-23T00:00:00Z

Content type: opinion

Language: en

Sources: [Kent C. Dodds Blog](<https://devfeed.tech/sources/kent-c-dodds-blog.md>)

Topics: [React](<https://devfeed.tech/topics/react.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [testing-library](<https://devfeed.tech/topics/testing-library.md>)

Tags: [react](<https://devfeed.tech/tags/react.md>), [refactor](<https://devfeed.tech/tags/refactor.md>), [testing](<https://devfeed.tech/tags/testing.md>), [testing-library](<https://devfeed.tech/tags/testing-library.md>)

## AI overview

An opinionated explanation of why shallow rendering is avoided when testing React components. It argues that shallow-rendering tests can break during harmless implementation refactors while failing to detect application regressions, creating false confidence.

## Source excerpt

Tests should help me be confident that my application is working and there are better ways to do that than shallow rendering.