Skip to content
T

Testing Library

Simple and complete testing utilities that encourage good testing practices

Open source

#8977in Developer Tools
0In stores

Description

Testing Library is a family of open-source JavaScript libraries for testing user interfaces by querying the page the way users find things o…

Preview

Highlights

  • Find elements by role, label and text
  • Adapters for React, Vue, Angular and Svelte
  • Works with Cypress, Puppeteer and Testcafe
  • Accessible-by-default selectors
  • Docs, examples and API reference

Ratings & Reviews

No ratings yet

Be the first to rate Testing Library.

People also visit

R

react-testing-library

React Testing Library: user-centric component testing

AI Skills
Get
J

jest-react-testing

Comprehensive React component testing

AI Skills
Get
P

Puppetry

Web testing solution for non-developers on top of Puppeteer and Jest

Developer Tools
Launch
S

snippets.uilicious.com

Test a user journey on your website, replicate a bug

Developer Tools
Launch
P

Percy

All-in-one visual testing and review platform

Developer Tools
Launch
T

test

Run tests for React core

AI Skills
Get

Testing Library FAQ

What is Testing Library?

A set of testing utilities that query your UI the way users find it, so tests focus on behaviour rather than implementation.

Can I use it for unit and end-to-end tests?

The site says you can write unit, integration and end-to-end tests with it, as long as the tests resemble how the software is used.

What if my app is localized?

The site advises getting the default text for tests if you can. If not, it suggests data-testid attributes, which it says are not bad in themselves.

Is it free?

Yes. The project is open source and developed on GitHub.

What are the best Testing Library alternatives?

Popular alternatives to Testing Library include Puppetry, snippets.uilicious.com and Percy. See all Testing Library alternatives

Developer Stuff

Badges