# Test Isolation with React

DevFeed: [Test Isolation with React](<https://devfeed.tech/articles/test-isolation-with-react-51886.md>)

Original publisher: [Read original article](<https://kentcdodds.com/blog/test-isolation-with-react>)

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

Content type: tutorial

Language: en

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

Topics: [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [React Native](<https://devfeed.tech/topics/react-native.md>), [Maintainability](<https://devfeed.tech/topics/maintainability.md>), [reliability-engineering](<https://devfeed.tech/topics/reliability-engineering.md>), [testing-library](<https://devfeed.tech/topics/testing-library.md>), [Jest](<https://devfeed.tech/topics/jest.md>)

Tags: [coverage](<https://devfeed.tech/tags/coverage.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [isolation](<https://devfeed.tech/tags/isolation.md>), [jest](<https://devfeed.tech/tags/jest.md>), [maintainability](<https://devfeed.tech/tags/maintainability.md>), [react](<https://devfeed.tech/tags/react.md>), [reliability](<https://devfeed.tech/tags/reliability.md>), [tests](<https://devfeed.tech/tags/tests.md>)

## AI overview

A tutorial on isolating React tests so they do not share mutable component state. It explains how independent test instances improve reliability, simplify refactoring and debugging, and increase confidence, using React Testing Library and Jest practices.

## Source excerpt

Why your tests should be completely isolated from one another and how to do that.