{"name":"react-test-renderer","version":"0.0.0-483358c38","keywords":["react","react-native","react-testing"],"license":"MIT","_id":"react-test-renderer@0.0.0-483358c38","maintainers":[{"name":"sebmarkbage","email":"sebastian@calyptus.eu"},{"name":"gaearon","email":"dan.abramov@gmail.com"},{"name":"zpao","email":"paul@oshannessy.com"},{"name":"acdlite","email":"npm@andrewclark.io"},{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},{"name":"cpojer","email":"christoph.pojer@gmail.com"},{"name":"fb","email":"opensource+npm@fb.com"},{"name":"trueadm","email":"dg@domgan.com"},{"name":"sophiebits","email":"npm@sophiebits.com"},{"name":"lunaruan","email":"lunaris.ruan@gmail.com"}],"homepage":"https://reactjs.org/","bugs":{"url":"https://github.com/facebook/react/issues"},"dist":{"shasum":"a93824cf8cd2cf36dc56525822b9ec004d6233f2","tarball":"http://registry-npm.ywwl.com/react-test-renderer/download/react-test-renderer-0.0.0-483358c38.tgz","fileCount":9,"integrity":"sha512-Xq51mc3d7Byu97/lAMVD73W5QThj3OK3jwSAhTAuzWSFz18SJVyCnpvoGgw0hxwDBjvNeW17BDzAQdbONeTrWQ==","signatures":[{"sig":"MEUCIQCuWJluRTf9io/mrWTEs3aN1pXbU/1lIJhatn8YvK8xMQIgbHD4LfwWJ2EmnqLa+5R9jEYPPeI4nyuB2V8ZUu1uceo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1403318,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJVu6CRA9TVsSAnZWagAA7DkP/1uED5kmuOmnpS2r8cW3\nWH8fvHkLcYJPsb8iFIu944ChXFZfg1S7pEBxacaG9PaoHbmhzWAi6XlwwmkY\ndlTfXHxr+NYMvJ+6wcJBQ0yNlfBeH8dM73wxPk6o5JfZSUuPoWICWZXwKYTa\n71tqmOU3WWM72DCmY/eqte494MRKRGHOAOib0UEK5ADc54TwNnX9cJ0TUWId\nQYnMPyeDmeXHLl4xtDpJvLFvnO3gCRuqvbCHa2g8xD+jfcNVGIU+2Vl0mlDR\nwjctHc+qS5LCw37EG67zPw9cZuwYhW3wXgZpn1S16Pc1E66iStYVzMUkxWQw\nH++T9niOXE9Xzq4qTm32q+Cjfk8f84Xm1GhoU/tWUyGCs2X6rpnFo4nyOdK0\nIbQZzO2gUvtuJLTPLjTKVqkpc5lKE+PfGkxYDA71j2sPCPrB2hXA0JrRiTAM\nbcf5xLTaajAcCLsqnSmK8hTNYu4U8PKvdQesN6U0Ug8TnV5JmUF4VU2sKVSs\nAH7pihmxu1Pb43O+t28x5ktkVLDaF8hjmmcHjsGpQkin7Ml3LRIiWkbLPe6U\nLmcIWOLD2kG1Xq31BvcKZ6PIe4zJ5oAa1HH3r5JJADnopPaqAGCBeeBcifJy\nXPSJQncYZBuO2JCo4dhIfn8krbmgz6PEmecc4OtmuTRoyz9WI5TtPa57RAH9\nQlKn\r\n=3oIK\r\n-----END PGP SIGNATURE-----\r\n","size":319058,"noattachment":false,"key":"/react-test-renderer/-/react-test-renderer-0.0.0-483358c38.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","_npmUser":{"name":"acdlite","email":"npm@andrewclark.io"},"repository":{"url":"git+https://github.com/facebook/react.git","type":"git","directory":"packages/react-test-renderer"},"_npmVersion":"6.14.8","description":"React package for snapshot testing.","directories":{},"_nodeVersion":"12.19.0","dependencies":{"react-is":"0.0.0-483358c38","scheduler":"0.0.0-483358c38","object-assign":"^4.1.1","react-shallow-renderer":"^16.13.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"react":"0.0.0-483358c38"},"_npmOperationalInternal":{"tmp":"tmp/react-test-renderer_0.0.0-483358c38_1613061050175_0.24981852681165062","host":"s3://npm-registry-packages"},"publish_time":1613061050372,"_cnpm_publish_time":1613061050372,"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"}}