npm / test-renderer
test-renderer
What changed in test-renderer 0.7 to 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
3 breaking10 new APIs and options3 behavior and defaults4 tooling4 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli inittest-renderer 19 changes
Breaking changes 2
The deprecated HostElement alias was removed; replace it with TestInstance.
Root.render accepts React elements, including fragments; unsupported root values such as null or bare strings now fail with a deliberate error.
New APIs and options 1
Adds support for the React 19.1 Owner Stack addition relevant to test-renderer.
Behavior and default changes 2
The useId() format is CSS-selector-safe.
The stable 1.x line uses preferred React compatibility lines: 1.0.x prefers React 19.0 with react-reconciler ~0.31.0, while peerDependencies.react remains broad across React 19.
Tooling 2
Adds support for React 19.3.
Adds React 19.2 support, including support for Activity and useEffectEvent; 1.2.x is the preferred compatibility line for React 19.2.
Fixes and other changes 2
The ESM build now resolves react-reconciler/constants.
The 1.1.x line is the preferred compatibility line for React 19.1.
test-renderer 0.152 changes
New APIs and options 1
Adds performance metrics.
Behavior and default changes 1
Transforms hidden instances.
test-renderer 0.141 changes
New APIs and options 1
The package.json entry point is exported, allowing developers to access it through the package.
test-renderer 0.132 changes
Tooling 1
Adds support for the 0.32.x reconciler base.
Fixes and other changes 1
Fixes the JSON element type.
test-renderer 0.122 changes
Breaking changes 1
The project was renamed to test-renderer.
New APIs and options 1
Adds the publicTestComponentTypes option.
test-renderer 0.102 changes
New APIs and options 1
Adds queryAll.
Tooling 1
Improves the typing for toJson.
test-renderer 0.92 changes
New APIs and options 2
Exposes the Fiber type from react-reconciler.
Adds more options; the notes do not specify which options.
test-renderer 0.82 changes
New APIs and options 1
The container prop is now exposed.
Fixes and other changes 1
Missing exports were added, making previously unavailable exports importable.
test-renderer 0.72 changes
New APIs and options 2
A findAll helper is available.
The underlying fiber for an element is exposed.