
About Testing Library
Testing Library is a family of small utilities for testing user interfaces. Its main idea is that tests should interact with an app the way its users do, which keeps them useful through refactors.
What it does
The library provides queries that find elements by their role, label or visible text, rather than by internal code details. Tests built this way usually break only when the app's behaviour changes, not when the code is reorganised. Framework-specific packages exist for React, Vue, Angular and Svelte, so the same ideas apply across projects.
Key features
- Queries that find elements the way users do
- Built-in selectors that favour accessible markup
- Framework packages for React, Vue, Angular and Svelte
- Tests that survive code refactors
- Lightweight, with a small set of utilities
Who it's for
Testing Library suits front-end developers who write component or page tests and want them to match real use. It is also useful for teams that care about accessible markup, since its queries rely on roles and labels. Teams can adopt it one test at a time.
Pricing and good to know
Testing Library is MIT licensed and free to use. It is a set of testing helpers, so you still need a test runner such as Jest or Vitest to run the tests. The docs include examples and an API reference, which makes it easier to get started.
Highlights
- Queries that find elements the way users do
- Selectors that favour accessible markup
- Framework packages for React, Vue and Angular
- Tests that hold up through code refactors
- Lightweight set of testing utilities












