{"name":"react-test-renderer","version":"18.0.0-alpha-3f62dec84-20210719","keywords":["react","react-native","react-testing"],"license":"MIT","_id":"react-test-renderer@18.0.0-alpha-3f62dec84-20210719","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":"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":"ea595f4c17905476c714670e535d8701e9777dd2","tarball":"http://registry-npm.ywwl.com/react-test-renderer/download/react-test-renderer-18.0.0-alpha-3f62dec84-20210719.tgz","fileCount":9,"integrity":"sha512-d2Ab1jxx/jf4eVuhsz+aOTbprg1xnOtF/0slV8ibWJ1FqITi0qsp0dzak7k8EsB+9w41cv2DYmhoMk1JjdTUDg==","signatures":[{"sig":"MEQCICneR009GRP3b6zZvx8QsfFXw40EYzp82+ubG0TNwqImAiAEbRNzDCk6oEj2aRy2+S5fiFR08HIfLn7NgLY5zg3n1g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1387386,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9vZPCRA9TVsSAnZWagAA4EQP/1YduZv7S9lQ7MUkmqdl\npHchSvvdg8ON6fYVOQdduY8dM1LTb5AiFxZMM0jOpIX7CcVwkXmMzR8LhKZg\n0TWD8UVK6+q0LOy2jMRpg7xklzGqOReMczlVFmrqDkkD4hwrt7tsbHmr00i0\nDeK2bddoP206S8pIwOm/Y4Ex6rqe7GwpBpv9r0kz0Ve0AelzQHEgwBoxNof6\n1qlX1eBb2vNnyz1tHdaTjOB8lqH/mr5q+yreRNjGQjMfJHCbWKshh+zpTG4a\nBtb7vcmLMtzyW8rXY+QTjDEj7+MouVppKxr6pBX+BJNh5W5qAS57Usrmcm6H\n7PEHlAIk2YhRy1ZDDkLZt66G6v2k5wtKDagh01xxHgF4DHajChidcGqqrT73\nrzRF7mbdCmveA1wOxa4NKSkStD1i8aWWT/9Cwh///iEvJOODPs6RmOwSrjJv\n5sPpz/hCUaMRI0MzKwxxgqG/swr8dtvusTvByTmyIq3/7G6uqgbHGuVhEg5p\n4BqJHPCosoRfmP+S/3l2+pcLFarQs8pSf2gWO/z2hGOmwJLQjfUwfKvg8EmD\nYGzqckwXxtQAwi9cwogNQa9ariRIH5i/61aAQ0/TD0brV0I34YiVXz0UrP1+\n57BTDVj7wroXgETVP1Jd74sCtfuymJS9h/CHrV8yjex5r6z4VJT0IhvuWfAr\nA/nq\r\n=IA/R\r\n-----END PGP SIGNATURE-----\r\n","size":313310,"noattachment":false,"key":"/react-test-renderer/-/react-test-renderer-18.0.0-alpha-3f62dec84-20210719.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.13","description":"React package for snapshot testing.","directories":{},"_nodeVersion":"14.17.3","dependencies":{"react-is":"18.0.0-alpha-3f62dec84-20210719","scheduler":"0.21.0-alpha-3f62dec84-20210719","object-assign":"^4.1.1","react-shallow-renderer":"^16.13.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"react":"18.0.0-alpha-3f62dec84-20210719"},"_npmOperationalInternal":{"tmp":"tmp/react-test-renderer_18.0.0-alpha-3f62dec84-20210719_1626797647094_0.5457370270855704","host":"s3://npm-registry-packages"},"publish_time":1626797647245,"_cnpm_publish_time":1626797647245,"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"}}