Testing Library
Family of utilities for testing UI the way users interact with it — React, Vue, Angular, DOM and more.
Testing Library encourages tests that query elements by accessible roles, labels and text rather than implementation details, which makes tests more resilient and nudges toward accessible markup. Packages exist for the DOM, React, Vue, Svelte, Angular and React Native, and work with Jest or Vitest.
- Type
- Testing
- Category
- Testing
- Maintainer
- Testing Library community
- First released
- 2018
- License
- Open source (MIT)
- Pricing
- Open source
- Level
- Beginner
- Technologies
- javascript, react, testing, accessibility
- GitHub stars
- 3,346
- Weekly downloads
- 105,606,194 (npm)
- Latest release
- [object Object]
- Last verified
- 26 Nov 2026
What Testing Library is used for
- Component tests
- Accessibility-oriented queries
- Integration tests of UI flows
Strengths
- User-centric testing philosophy
- Framework adapters
- Encourages accessibility
Limitations
- Runs in jsdom by default, not a real browser
- Async utilities need understanding
Testing Library alternatives
How it relates to other tools
Built with the same technologies
Learn Testing Library
Official links
- Official website
- Documentation
- Source code (testing-library/dom-testing-library)
- npm: @testing-library/react
- npm: @testing-library/dom