test-renderer
npmv1.2.0TypeScriptA lightweight test renderer for React and a modern replacement for the deprecated React Test Renderer.
Overview
test-renderer is an npm package that a lightweight test renderer for React and a modern replacement for the deprecated React Test Renderer. It is very popular, with about 446.3K downloads per week and 1 known dependents in the graph. The latest version is 1.2.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need a lightweight test renderer for React and a modern replacement for the deprecated React Test Renderer and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (446.3K weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- Large dependency tree (19 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of test-renderer.
Dependencies
Peer (1)
Dev (16)
Used by
Popular packages that depend on test-renderer.
Alternatives to test-renderer
Delightful JavaScript Testing.
Delightful JavaScript Testing.
Custom jest matchers to test the state of the DOM
Fire events the same way the user does
Delightful JavaScript Testing.
Cooperative scheduler for the browser environment.
BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
React is a JavaScript library for building user interfaces.
The same useRef, but with callback
Sidecar code splitting utils
Just create a single stylesheet...
Next.js dotenv file loading
Frequently installed together
A framework for building native apps using React
Delightful JavaScript Testing.
React is a JavaScript library for building user interfaces.
Stringify any JavaScript value.
TypeScript definitions for react
Strip redundant indentation and indent the string
Babel preset for React Native applications
Jest preset for React Native apps
Jest plugin to use babel for transformation.
Babel preset for TypeScript.
A set of utility functions for expect and related packages
TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files
Version history
| Version | Published | License |
|---|---|---|
| 1.2.0latest | 3 months ago | MIT |
| 1.1.0 | 3 months ago | MIT |
| 1.0.0 | 3 months ago | MIT |
| 0.16.0 | 3 months ago | MIT |
| 0.15.0 | 4 months ago | MIT |
| 0.14.0 | 6 months ago | MIT |
| 0.13.2 | 6 months ago | MIT |
| 0.13.1 | 6 months ago | MIT |
| 0.13.0 | 6 months ago | MIT |
| 0.12.0 | 6 months ago | MIT |
| 0.11.0 | 6 months ago | MIT |
Maintainers
Frequently asked questions
How do I install test-renderer?
Run `npm install test-renderer` to add test-renderer to your npm project.
What license is test-renderer released under?
test-renderer is distributed under the MIT license.
How popular is test-renderer?
test-renderer has approximately 446,337 downloads per week and 1 known dependent packages.