{"name":"react-test-renderer","version":"18.3.0-next-cf665c4b7-20220620","keywords":["react","react-native","react-testing"],"license":"MIT","_id":"react-test-renderer@18.3.0-next-cf665c4b7-20220620","maintainers":[{"name":"gaearon","email":"dan.abramov@gmail.com"},{"name":"zpao","email":"paul@oshannessy.com"},{"name":"acdlite","email":"npm@andrewclark.io"},{"name":"gnoff","email":"jcs.gnoff@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":"8d1ed623bb263f387b9560c6445f79b4402ae54d","tarball":"http://registry-npm.ywwl.com/react-test-renderer/download/react-test-renderer-18.3.0-next-cf665c4b7-20220620.tgz","fileCount":9,"integrity":"sha512-TJ1eEMHDu8V80AY8jo2Eh6gEbpJ2AmkJpA5qkEea0KnJBO7ylsTDbN7TVSTUQ0pF3TDqBpyy89L/S4lHoityqw==","signatures":[{"sig":"MEQCIE7pniSW1DzZbW8VlSirtHsaBj+udSoK9WOHPA09m0Y4AiBHRV6vPmAI8v2qYzjjUe+Wjc8IRnv822MyBamLCS1NRQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1525313,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJise4bACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoiLg//U8ThufiDY5ebsNBiUzV0z3eV3y8T5PI+FqJKjLRhs2zXDZA0\r\nSDAS/vQj74S6oIYhIjj3Hi88dkC+3NSVxSpEfJAMpw/ExYEpy3hMNMhP/dxn\r\n0kbUw4vRghXKjTeqTMu6zndxDEcgi+rvSe0XNN0s5gSazf4ggNM/b94HBGFD\r\ncy3L3SYcOPnHJlA6wnj/1xMl//vnOwPBEAMClvUKs1i2n5oUbWSzOln8w89l\r\nPfppHDOYyQG1dvA48HmCXoptfhCaussen5kJL8UcRjxg6CMRiNWvbMYUPJnx\r\nIM0qhFanaDjWdyYbLyTr3LLKUR8cVZqXEuJd+F3b3sDoEeREuQ+iXPWHWP5q\r\naijFVkuLUqX58MC8dgpEREHTPs5wV23BQfXqpgI9QTOk8yNldKjPDXuCA+JN\r\nX5CsSwDbu7E2UUfglD8a5Xe5C32Pci0pp7hl3K+wEtobWji4D/aASCGvqSi3\r\nzTxZoEO157NoMrgitK4mj1KpfGcCWYCKtS6/Rbb2s1n29ccbI6AL17Um0eSc\r\nPRpMkwRsTgMwkG1lHOQJ+SolcBviKlJGfYTx3LafFJySjToSESKx2kxElN7E\r\nsYQBUdCV1fnC6OVfklnkRGU184UJScp9+lPjuRKTuXPLTgEmwwKb7/F4mykZ\r\nE0XhD37zpB3iS5XsCcOEl4RQGrcdJooXBDU=\r\n=5jpS\r\n-----END PGP SIGNATURE-----\r\n","size":344975,"noattachment":false,"key":"/react-test-renderer/-/react-test-renderer-18.3.0-next-cf665c4b7-20220620.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.3.0-next-cf665c4b7-20220620","scheduler":"0.24.0-next-cf665c4b7-20220620","react-shallow-renderer":"^16.15.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"react":"18.3.0-next-cf665c4b7-20220620"},"_npmOperationalInternal":{"tmp":"tmp/react-test-renderer_18.3.0-next-cf665c4b7-20220620_1655827994943_0.6127251501980369","host":"s3://npm-registry-packages"},"publish_time":1655827995183,"_cnpm_publish_time":1655827995183,"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"}}