{"name":"react-test-renderer","version":"18.3.0-next-47cf4e578-20230315","keywords":["react","react-native","react-testing"],"license":"MIT","_id":"react-test-renderer@18.3.0-next-47cf4e578-20230315","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":"453bc81dd7950aec44450de6d6198a884861c5b2","tarball":"http://registry-npm.ywwl.com/react-test-renderer/download/react-test-renderer-18.3.0-next-47cf4e578-20230315.tgz","fileCount":9,"integrity":"sha512-M0GDX+YmTlfvs1o0yupbgHIQy8sIJz1+iEDgLSY5OY11lV8FfW37RP4oq2YvERY6mFEUeuYE7GnCogd/Wfti/A==","signatures":[{"sig":"MEYCIQDrfNoVugOFV2CPBwjoKJRVdFmt2Opqw5hN4Jw4FGKd9gIhAOYNCdt1aQd7Fh4nb2qBV7YaVx1KNQy7ZfMvvPRexo9C","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1754680,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEe54ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr7Kg/5AZFaRpcwy0ss4nVFuCswOfGc5wEJBD5BERN/IR+/XsP9ukVV\r\nbvlrmWKvQCFVZuzcXn/6qENxujiXsI8QsCZ1zukFqEtoAji4zQGDQiM+OeY3\r\nnRGqJppvO4w8SK6Iboj4lsDLmMRa/gJaIcUWr9UNL77usJ53HqjqoD2WLnTD\r\nAYNP4bciQfcvBeWA9Qn/y13Vgm+FcL208vhNlFLyQa0D1INh0t+xZ+HX/Ofs\r\nZqsPwEG6GW6f7BrJGJVyLQm8+aCjJP5dL/V8sCSCR2f3eDGVa2hAQ/zWlQXr\r\nffuWqTtgtuUIAZo+mb0XG7BLP3MmBZsIo+MoKO93yX1+lFr9+2LmEWWYEmbP\r\nkhsRaisPtmfz6sD6nVMW9Kku2B6//OV6lxRihhThvzfiOJBa6itEZS831rYf\r\nPgIKgGWomu9Ir+jQkfLhrw1FvKkxPYTzinmaUq2vIaj7j+7lnDG5ojfqtLq8\r\nqMlRhw8i9VtvBzHkwhYFKkzK7Dgmq+eis1bplYvqNDHO3MN/6UbD+dA+2s4f\r\njRCG0MNjAxr8uj4UfJHx6CmN7ptTuzHiZcS5BgvOLfHHKOShUvBQUoyo8v7u\r\nwa+lyWZRXzRt0xx97zzVUziqL/2Sy/j8ki7G42h35Jo/6tL8pBJW8VePfCoU\r\n+yXRmIYxUwlLJJZ2ChRjqsCOpOr6n9eP3w0=\r\n=NDlx\r\n-----END PGP SIGNATURE-----\r\n","size":392467,"noattachment":false,"key":"/react-test-renderer/-/react-test-renderer-18.3.0-next-47cf4e578-20230315.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":"47cf4e578c2d8eef9c6cc27105ce560307999244","_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-next-47cf4e578-20230315","scheduler":"0.24.0-next-47cf4e578-20230315","react-shallow-renderer":"^16.15.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"react":"18.3.0-next-47cf4e578-20230315"},"_npmOperationalInternal":{"tmp":"tmp/react-test-renderer_18.3.0-next-47cf4e578-20230315_1678896759910_0.15268974204462915","host":"s3://npm-registry-packages"},"publish_time":1678896760160,"_cnpm_publish_time":1678896760160,"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"}}