{"library":"react-test-renderer","type":"library","category":null,"description":"The `react-test-renderer` package provides a renderer that can be used to render React components into plain JavaScript objects, offering a way to test components without requiring a DOM environment or a browser. It is primarily used for snapshot testing, enabling the generation of serializable JSON representations of a component tree that can be compared against previous snapshots to detect unintended UI changes over time. The current stable version is 19.2.5, aligning with the core React library's frequent patch releases. Unlike `@testing-library/react`, this library focuses on the internal structure and rendered output of components rather than simulating user interactions, making it suitable for asserting on the rendered tree itself.","language":"javascript","status":"active","version":"19.2.5","tags":["javascript","react","react-native","react-testing"],"install":[{"cmd":"npm install react-test-renderer","imports":["import renderer from 'react-test-renderer';\nconst tree = renderer.create(<MyComponent />);","import { act } from 'react-test-renderer';","import type { ReactTestRenderer } from 'react-test-renderer';"]},{"cmd":"yarn add react-test-renderer","imports":[]},{"cmd":"pnpm add react-test-renderer","imports":[]}],"homepage":"https://react.dev/","github":"https://github.com/facebook/react","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/react-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/react-test-renderer/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}