{"name":"react-test-renderer","version":"18.3.0-canary-ce6842d8f-20230610","keywords":["react","react-native","react-testing"],"license":"MIT","_id":"react-test-renderer@18.3.0-canary-ce6842d8f-20230610","maintainers":[{"name":"gaearon","email":"dan.abramov@gmail.com"},{"name":"zpao","email":"paul@oshannessy.com"},{"name":"gnoff","email":"jcs.gnoff@gmail.com"},{"name":"fb","email":"opensource+npm@fb.com"},{"name":"sophiebits","email":"npm@sophiebits.com"},{"name":"react-bot","email":"react-core@meta.com"}],"homepage":"https://reactjs.org/","bugs":{"url":"https://github.com/facebook/react/issues"},"dist":{"shasum":"c43ea746d043edb9ceebb40fe2d4418829c7d336","tarball":"http://registry-npm.ywwl.com/react-test-renderer/download/react-test-renderer-18.3.0-canary-ce6842d8f-20230610.tgz","fileCount":9,"integrity":"sha512-2OH6zudIQA5rVCBUnoTLmaCpACI4edV8h9Rs5C3kqjMCTz+ZtxPSI2pVhyT+T0Ozcq2CfAUL5NbXA6oAakD5pA==","signatures":[{"sig":"MEUCIQDvhC0ALpBuoadu+3EMhQOIyQoHI2AOP6TbRJOvZ8ayOQIgG+aAsi04jkAVki+oG6QVL/HUtS91NeGwdmAWI7qZByo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1812395,"size":407411,"noattachment":false,"key":"/react-test-renderer/-/react-test-renderer-18.3.0-canary-ce6842d8f-20230610.tgz"},"main":"index.js","readme":"# `react-test-renderer`\n\nThis package provides an experimental React renderer that can be used to render React components to pure JavaScript objects, without depending on the DOM or a native mobile environment.\n\nEssentially, this package makes it easy to grab a snapshot of the \"DOM tree\" rendered by a React DOM or React Native component without using a browser or jsdom.\n\nDocumentation:\n\n[https://reactjs.org/docs/test-renderer.html](https://reactjs.org/docs/test-renderer.html)\n\nUsage:\n\n```jsx\nconst ReactTestRenderer = require('react-test-renderer');\n\nconst renderer = ReactTestRenderer.create(\n  <Link page=\"https://www.facebook.com/\">Facebook</Link>\n);\n\nconsole.log(renderer.toJSON());\n// { type: 'a',\n//   props: { href: 'https://www.facebook.com/' },\n//   children: [ 'Facebook' ] }\n```\n\nYou can also use Jest's snapshot testing feature to automatically save a copy of the JSON tree to a file and check in your tests that it hasn't changed: https://jestjs.io/blog/2016/07/27/jest-14.html.\n","gitHead":"ce6842d8f528977119b80d969306c8475099f66e","_npmUser":{"name":"react-bot","email":"react-core@meta.com"},"repository":{"url":"git+https://github.com/facebook/react.git","type":"git","directory":"packages/react-test-renderer"},"_npmVersion":"8.11.0","description":"React package for snapshot testing.","directories":{},"_nodeVersion":"16.16.0","dependencies":{"react-is":"18.3.0-canary-ce6842d8f-20230610","scheduler":"0.24.0-canary-ce6842d8f-20230610","react-shallow-renderer":"^16.15.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"react":"18.3.0-canary-ce6842d8f-20230610"},"_npmOperationalInternal":{"tmp":"tmp/react-test-renderer_18.3.0-canary-ce6842d8f-20230610_1686586383659_0.22724717186450416","host":"s3://npm-registry-packages"},"publish_time":1686586384012,"_cnpm_publish_time":1686586384012,"dist-tags":{"backport":"19.1.10","beta":"19.0.0-beta-26f2496093-20240514","canary":"19.3.0-canary-df6aa4ec-20261112","experimental":"0.0.0-experimental-df6aa4ec-20261112","latest":"19.3.1","next":"19.3.0-canary-d5736f09-20260507","rc":"19.0.0-rc.1"}}