{"name":"react-test-renderer","version":"18.3.0-canary-41f0e9dae-20230907","keywords":["react","react-native","react-testing"],"license":"MIT","_id":"react-test-renderer@18.3.0-canary-41f0e9dae-20230907","maintainers":[{"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":"4f54b0c4bc20019ade786ece7d2a84fa34278ddb","tarball":"http://registry-npm.ywwl.com/react-test-renderer/download/react-test-renderer-18.3.0-canary-41f0e9dae-20230907.tgz","fileCount":9,"integrity":"sha512-HizfeW0GjfYa9I/6Fml6nu6Tpm3c9C7m2HZvTP4FR8ORfj0oOgi+3yy8Ho4L2WfjiWWeY6lwxggcS6IOLM0J+w==","signatures":[{"sig":"MEQCIHzF59UY1UMcPrYfq/0gTZBVpf5BCNkZZGIhxRVI5ttFAiAG9w+LUyku5IahWiplZzEdPve8u2G25FVsBwHZC9Zftg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1822989,"size":411290,"noattachment":false,"key":"/react-test-renderer/-/react-test-renderer-18.3.0-canary-41f0e9dae-20230907.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":"41f0e9dae3b81396dc29a4735b355ea318cc5772","_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-canary-41f0e9dae-20230907","scheduler":"0.24.0-canary-41f0e9dae-20230907","react-shallow-renderer":"^16.15.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"react":"18.3.0-canary-41f0e9dae-20230907"},"_npmOperationalInternal":{"tmp":"tmp/react-test-renderer_18.3.0-canary-41f0e9dae-20230907_1694189612820_0.8921486717571157","host":"s3://npm-registry-packages"},"publish_time":1694189613092,"_cnpm_publish_time":1694189613092,"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"}}