{"library":"test-renderer","type":"library","category":null,"description":"test-renderer is a modern, lightweight testing utility for React, serving as a replacement for the deprecated `react-test-renderer` package. Currently stable at version 1.2.0, this library adheres to a rapid release cadence, with minor versions specifically tracking compatibility lines for new React minor releases (e.g., 1.2.x for React 19.2). It leverages React Reconciler to construct an in-memory \"Test Output Tree\" and a serializable \"JSON Output Tree,\" making it ideal for snapshot testing and detailed component inspection. It is a core dependency for libraries like React Native Testing Library and provides direct access to React Reconciler options for advanced use cases, while fully supporting modern React 19 features such as Actions, useActionState, and useEffectEvent.","language":"javascript","status":"active","version":"1.2.0","tags":["javascript","jest","react","react-19","react-test-renderer","test-renderer","testing","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install test-renderer","imports":["import { createRoot } from 'test-renderer';","import { act } from 'react';","import { type RootOptions } from 'test-renderer';"]},{"cmd":"yarn add test-renderer","imports":[]},{"cmd":"pnpm add test-renderer","imports":[]}],"homepage":null,"github":"https://github.com/mdjastrzebski/test-renderer","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/test-renderer","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/test-renderer/compatibility"}}