{"name":"react-test-renderer","version":"18.0.0-rc.0-next-a3bde7974-20220208","keywords":["react","react-native","react-testing"],"license":"MIT","_id":"react-test-renderer@18.0.0-rc.0-next-a3bde7974-20220208","maintainers":[{"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":"5a86efd8c9c72bf6e39bb27b5786686c127c8324","tarball":"http://registry-npm.ywwl.com/react-test-renderer/download/react-test-renderer-18.0.0-rc.0-next-a3bde7974-20220208.tgz","fileCount":9,"integrity":"sha512-lmyuITvMYp7acLDAMa7s2H4Y07wwbIMbDC8I0bhRGegshQYYh4fLI0vbgezSsOImdnfpz7Z6ZQhSoaC3hqUIIg==","signatures":[{"sig":"MEUCIEsToIpQWYRIx4ZGs2d1yBBNDBcXcSFSBcMRLW1Wfy10AiEAjObCowUmyRvHCtaO5k0IZ9v8uTGLtP3ZSJ0RWUpYZvc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1430886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiA+g8CRA9TVsSAnZWagAAVs0P/jDp5rg85V68dm5ff4DS\nRFro3j1YUWmGAckjoSBj0VX299epEUm6BIQzAP9rQ7hJFFMIJxMs7ICXMUoy\njp6IEbn+qo0onv8CMFkiwUWNH0DYcbLHGeice4TxX24XIL2zY/h8Z8EzXmJj\nttCPLvneSMDxH95+nTmQqVqvgkJJAo+USw0+JBW0ZXxFdSZ+djif1A6n6guV\nEjIzdihcnmU/XKu/2L2FwmPhFwO3wBIMHrk2rECyLlsaJH2FCUWuIRqdwRhu\nLY/p8xeIGovV5iIZGEIXhwvKsPzs9BL25Lg6RJvigXzmZpIsNQFokkawiy0S\nvDiKH7gVUsdsT06F9Aj/FllcInhPByJ96QMUtBNjRydgUiwqP9mCUfcJ84LQ\nHDwxwfxR8fdkhkMZuWbAWz5RCiahq0JK4btDOD521VkWxpTRVqxEQLl/iMh0\nk4NF2FnZ2uRJ88lu/KlICDN+Py7PQE2umHJHXcebQkEGuVoRAK6+yhPLEZxH\n8VBk4I3PkN3hO6tybDLwnGr7NAF74D2Ts5BlmUIr2td8ofjJGQxxKG4XcWWD\nU9FoDafo09Xk0vpCCeTno6ttUjvwCRYSSVkp8PlFfHnIHacoc7Y4w/HbI/W4\neCGz16lxjnhPksRELHKMkvnBqdYk1KyL/InulV1k0X2uyP0g6gpl09Zobu8D\nNrBP\r\n=U/cb\r\n-----END PGP SIGNATURE-----\r\n","size":325740,"noattachment":false,"key":"/react-test-renderer/-/react-test-renderer-18.0.0-rc.0-next-a3bde7974-20220208.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.15","description":"React package for snapshot testing.","directories":{},"_nodeVersion":"14.17.6","dependencies":{"react-is":"18.0.0-rc.0-next-a3bde7974-20220208","scheduler":"0.21.0-rc.0-next-a3bde7974-20220208","object-assign":"^4.1.1","react-shallow-renderer":"^16.13.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"react":"18.0.0-rc.0-next-a3bde7974-20220208"},"_npmOperationalInternal":{"tmp":"tmp/react-test-renderer_18.0.0-rc.0-next-a3bde7974-20220208_1644423228259_0.7657493837397342","host":"s3://npm-registry-packages"},"publish_time":1644423228449,"_cnpm_publish_time":1644423228449,"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"}}