# Common mistakes with React Testing Library

DevFeed: [Common mistakes with React Testing Library](<https://devfeed.tech/articles/common-mistakes-with-react-testing-library-51746.md>)

Original publisher: [Read original article](<https://kentcdodds.com/blog/common-mistakes-with-react-testing-library>)

Published: 2020-05-04T00:00:00Z

Content type: tutorial

Language: en

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

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

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

## AI overview

An opinionated guide to common suboptimal patterns in React Testing Library. It explains why these testing approaches can reduce confidence or cause problems and recommends improved practices, including using the official Testing Library ESLint plugin and better assertion and query patterns.

## Source excerpt

Some mistakes I frequently see people making with React Testing Library.