Skip to main content

@testing-library/react

v16.3.3SAFE Risk

Simple and complete React DOM testing utilities that encourage good testing practices.

A+100/100
Install Command
npm install @testing-library/react
orpnpm add @testing-library/react
Typosquat Defense
Authentic Name

No similarity to known typosquatting targets.

Lifecycle Scripts
Clean Execution

Zero preinstall or postinstall arbitrary execution hooks.

License Type
MIT

Permissive open-source license. Safe for enterprise & proprietary software.

Package Specifications

Unpacked Size
331.6 KB
Dependencies
1
Maintainers
18
Last Published
Aug 27, 2026

Direct Dependencies (1)

Head-to-Head Comparisons with @testing-library/react

Free VS Code Extension

Detect Supply Chain Attacks Directly in Your Editor

Get instant CodeLens risk scores, typosquatting warnings, and license audits right inside your package.json file with zero configuration.

Install Dependency Risk Lens

Frequently Asked Questions

Is @testing-library/react safe to use in production?
@testing-library/react received a Security Grade of A+ (100/100) with a risk evaluation of SAFE. It contains zero malicious postinstall scripts.
What license does @testing-library/react use?
@testing-library/react is licensed under the MIT license (PERMISSIVE). This is a permissive open-source license suitable for commercial applications.
How do I install @testing-library/react?
Install it via NPM using: npm install @testing-library/react, or via PNPM: pnpm add @testing-library/react, or Yarn: yarn add @testing-library/react.