CodeBrowser / npm / @testing-library/react
@testing-library/react@16.3.2
// Simple and complete React DOM testing utilities that encourage good testing practices.
$ npm install @testing-library/react
downloads/wk
47,963,821
license
MIT
version
16.3.2
published
Jan 19, 2026
What is @testing-library/react?
@testing-library/react is a testing utility library for React applications that provides tools for testing components by simulating user interactions with the DOM. Developers use it to write unit, integration, and end-to-end tests that verify React components behave correctly from a user's perspective rather than testing implementation details. It works with jsdom to run tests in a JavaScript environment without requiring a browser.
Keywords
#testing #react #ui #dom #jsdom #unit #integration #functional #end-to-end #e2e
Dependencies (1)
Maintainers
testing-library-bot, kentcdodds, timdeschryver, patrickhulce, dfcook, gpx, mpeyper, mihar-22, pago, cmckinstry, thymikee, brrianalexis, jdecroock, mdjastrzebski, eps1lon, phryneas, matanbobi