{"name":"react-test-renderer","version":"0.0.0-experimental-d7dce572c","keywords":["react","react-native","react-testing"],"license":"MIT","_id":"react-test-renderer@0.0.0-experimental-d7dce572c","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":"a8573b8d93a0047e31cc5587b858ac49e2a8a5c8","tarball":"http://registry-npm.ywwl.com/react-test-renderer/download/react-test-renderer-0.0.0-experimental-d7dce572c.tgz","fileCount":9,"integrity":"sha512-CipNKX293DRNhsw4Q4Oonl+qKATUkAtgVutAnfh/a9X98EUO2aeC/MXEt2luWbozjMafSFKJ1jvlZ+5ccpcotw==","signatures":[{"sig":"MEUCIAO9jUG7ts08iIe2MIpiMD9TfiV9hD9BXswQ0/q9Am7xAiEAkU+WxpxQmn8dugzzZ/zM2olHC6Hpow7ADmE6A3vcqZQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1407872,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg014cCRA9TVsSAnZWagAAmTIP/1Yv0QAqTrN0j0LqPKfw\nGrOZE2hUCdLqSCubcmNYUpFMODIx/pWg6IGU15Ay4LA0Rhk5uQOLaPwXYFfw\nmAub7ja6wGfSWDSBEG8OkhoqMX/ffwHHQfnYJSgZm0isd8ToN3VFwKk/dEfk\nX5nkeVi4Xr2nbkmDbzpOzpLRR3nSGbUhiZAQYFVIi+amf7c70bDu7LoTZdY2\nDiddEEETgf6qNWhN7jqT7+IpkRBeqG7S6F2A9CEuUXGUXAUD3zoliEz4zOAf\n2hmTNARxLZJeO1pDXMn4b0LESu7a5U5ppMUnpPkrKVlya92W3JgJmjZxFPNV\nQx6BP+ULTBkbqj333Mdh1sXLCn7bg0bfDhuhMKfnu+MhxJc5FOEfsxYiXJqm\nhdoG1ifFVhk+VwyDzQ4FAA1xuN8Go2kv9F5Hoy1tEcNvQS3Jzxvk165OEWRm\nWrexlCmpdmJeju3TeyV32prF3dxLKj2c+2iZU2LCH1o7tYVPH0ezQsIYJ4iN\n1ugFtNlkIhcEcC3qNbkw3uBerIw5ipR7mVJvbFvjV3bvurEY0kToaumqc8iR\n+8ZUHXmfpo0Q9DpngRTtrx6ORikiEzQhXp48vaSNAqFgYOw1H4bpJgMfJyMQ\ng0DPaMJ6t7aephwUDxat0YVBaqHXQD5lJv9F+gZ4L+8ns0s4EqpkHl5eA/Oq\nMLSW\r\n=0jg8\r\n-----END PGP SIGNATURE-----\r\n","size":316924,"noattachment":false,"key":"/react-test-renderer/-/react-test-renderer-0.0.0-experimental-d7dce572c.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.1","dependencies":{"react-is":"0.0.0-experimental-d7dce572c","scheduler":"0.0.0-experimental-d7dce572c","object-assign":"^4.1.1","react-shallow-renderer":"^16.13.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"react":"0.0.0-experimental-d7dce572c"},"_npmOperationalInternal":{"tmp":"tmp/react-test-renderer_0.0.0-experimental-d7dce572c_1624464923983_0.34052936655286836","host":"s3://npm-registry-packages"},"publish_time":1624464924169,"_cnpm_publish_time":1624464924169,"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"}}