{"repo":"testing-library/react-testing-library","free":true,"listed":false,"github":"https://github.com/testing-library/react-testing-library","clone":"git clone https://github.com/testing-library/react-testing-library.git","description":"🐐 Simple and complete React DOM testing utilities that encourage good testing practices.","language":"JavaScript","stars":19641,"topics":["reactjs","testing","javascript"],"license":"MIT","category":"dev-tools","readme_excerpt":"React Testing Library Simple and complete React DOM testing utilities that encourage good testing practices. Read The Docs Edit the docs [![Build Status][build-badge]][build] [![Code Coverage][coverage-badge]][coverage] [![version][version-badge]][package] [![downloads][downloads-badge]][npmtrends] [![MIT License][license-badge]][license] [![All Contributors][all-contributors-badge]](#contributors) [![PRs Welcome][prs-badge]][prs] [![Code of Conduct][coc-badge]][coc] [![Discord][discord-badge]][discord] [![Watch on GitHub][github-watch-badge]][github-watch] [![Star on GitHub][github-star-badge]][github-star] [![Tweet][twitter-badge]][twitter] Table of Contents - The problem - The solution - Installation - Suppressing unnecessary warnings on React DOM 16.8 - Examples - Basic Example - Complex Example - More Examples - Hooks - Guiding Principles - Docs - Issues - 🐛 Bugs - 💡 Feature Requests - ❓ Questions - Contributors - LICENSE The problem You want to write maintainable tests for your React components. As a part of this goal, you want your tests to avoid including implementation details of your components and rather focus on making your tests give you the confidence for which they are intended. As part of this, you want your testbase to be maintainable in the long run so refactors of your components (changes to implementation but not functionality) don't break your tests and slow you and your team down. The solution The React Testing Library is a very lightweight solution fo","default_branch":null,"files":null,"tree":[],"storefront":"/r/testing-library","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/testing-library/react-testing-library/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}