{"_id":"react-shallow-renderer","_rev":"3226778","name":"react-shallow-renderer","description":"React package for shallow rendering.","dist-tags":{"latest":"16.15.0"},"maintainers":[{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},{"name":"gaearon","email":""},{"name":"ljharb","email":""},{"name":"minh.nguyen","email":"minhnguyenxx@gmail.com"},{"name":"trueadm","email":"dg@domgan.com"}],"time":{"modified":"2024-03-21T07:34:44.000Z","created":"2015-10-10T05:25:12.829Z","16.15.0":"2022-04-06T17:50:58.204Z","16.14.1":"2020-10-21T11:56:21.328Z","16.14.0":"2020-10-20T22:29:08.260Z","16.13.1":"2020-03-16T23:02:14.219Z","16.13.0":"2020-02-28T14:02:12.631Z","16.12.0":"2020-02-26T18:34:56.597Z","1.1.4":"2015-10-10T15:34:32.891Z","1.1.3":"2015-10-10T12:42:24.587Z","1.1.2":"2015-10-10T10:26:19.320Z","1.1.1":"2015-10-10T10:24:37.818Z","1.1.0":"2015-10-10T10:19:48.302Z","1.0.1":"2015-10-10T09:52:30.468Z","1.0.0":"2015-10-10T05:25:12.829Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/NMinhNguyen/react-shallow-renderer.git"},"versions":{"16.15.0":{"name":"react-shallow-renderer","version":"16.15.0","description":"React package for shallow rendering.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/NMinhNguyen/react-shallow-renderer.git"},"keywords":["react","react-native","react-testing"],"license":"MIT","bugs":{"url":"https://github.com/NMinhNguyen/react-shallow-renderer/issues"},"homepage":"https://reactjs.org/","dependencies":{"object-assign":"^4.1.1","react-is":"^16.12.0 || ^17.0.0 || ^18.0.0"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.8.6","@babel/plugin-proposal-class-properties":"^7.8.3","@babel/plugin-proposal-object-rest-spread":"^7.8.3","@babel/plugin-transform-classes":"^7.8.6","@babel/plugin-transform-react-jsx-source":"^7.8.3","@babel/plugin-transform-template-literals":"^7.8.3","@babel/preset-env":"^7.8.6","@babel/preset-react":"^7.8.3","@rollup/plugin-commonjs":"^11.0.1","@rollup/plugin-node-resolve":"^7.0.0","@rollup/plugin-replace":"^2.3.0","babel-eslint":"^10.1.0","babel-jest":"^25.1.0","confusing-browser-globals":"^1.0.9","eslint":"^6.8.0","eslint-config-prettier":"^6.10.0","eslint-plugin-jest":"^23.8.0","eslint-plugin-prettier":"^3.1.2","eslint-plugin-react":"^7.18.3","fs-extra":"^8.1.0","husky":"^4.2.3","jest":"^25.1.0","jest-diff":"^25.1.0","lint-staged":"^10.0.8","prettier":"1.19.1","react":"^18.0.0","rimraf":"^3.0.1","rollup":"^1.30.1","rollup-plugin-babel":"^4.3.3","rollup-plugin-strip-banner":"^1.0.0"},"peerDependencies":{"react":"^16.0.0 || ^17.0.0 || ^18.0.0"},"scripts":{"prebuild":"rimraf build","build":"rollup --config","postbuild":"node ./scripts/copyFiles.js","lint":"eslint --ignore-path .gitignore .","test":"jest","test:debug":"node --inspect-brk node_modules/jest/bin/jest.js --runInBand --no-cache"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":"eslint --cache --fix"},"gitHead":"221635124c02ae00ba965dbe25befedaa22a0f4c","_id":"react-shallow-renderer@16.15.0","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"shasum":"48fb2cf9b23d23cde96708fe5273a7d3446f4457","size":30892,"noattachment":false,"key":"/react-shallow-renderer/-/react-shallow-renderer-16.15.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-shallow-renderer/download/react-shallow-renderer-16.15.0.tgz"},"_npmUser":{"name":"gaearon","email":"dan.abramov@gmail.com"},"directories":{},"maintainers":[{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},{"name":"gaearon","email":""},{"name":"ljharb","email":""},{"name":"minh.nguyen","email":"minhnguyenxx@gmail.com"},{"name":"trueadm","email":"dg@domgan.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-shallow-renderer_16.15.0_1649267458101_0.31899063978444464"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-06T22:21:02.733Z","publish_time":1649267458204,"_cnpm_publish_time":1649267458204},"16.14.1":{"name":"react-shallow-renderer","version":"16.14.1","description":"React package for shallow rendering.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/NMinhNguyen/react-shallow-renderer.git"},"keywords":["react","react-native","react-testing"],"license":"MIT","bugs":{"url":"https://github.com/NMinhNguyen/react-shallow-renderer/issues"},"homepage":"https://reactjs.org/","dependencies":{"object-assign":"^4.1.1","react-is":"^16.12.0 || ^17.0.0"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.8.6","@babel/plugin-proposal-class-properties":"^7.8.3","@babel/plugin-proposal-object-rest-spread":"^7.8.3","@babel/plugin-transform-classes":"^7.8.6","@babel/plugin-transform-react-jsx-source":"^7.8.3","@babel/plugin-transform-template-literals":"^7.8.3","@babel/preset-env":"^7.8.6","@babel/preset-react":"^7.8.3","@rollup/plugin-commonjs":"^11.0.1","@rollup/plugin-node-resolve":"^7.0.0","@rollup/plugin-replace":"^2.3.0","babel-eslint":"^10.1.0","babel-jest":"^25.1.0","confusing-browser-globals":"^1.0.9","eslint":"^6.8.0","eslint-config-prettier":"^6.10.0","eslint-plugin-jest":"^23.8.0","eslint-plugin-prettier":"^3.1.2","eslint-plugin-react":"^7.18.3","fs-extra":"^8.1.0","husky":"^4.2.3","jest":"^25.1.0","jest-diff":"^25.1.0","lint-staged":"^10.0.8","prettier":"1.19.1","react":"^16.12.0","rimraf":"^3.0.1","rollup":"^1.30.1","rollup-plugin-babel":"^4.3.3","rollup-plugin-strip-banner":"^1.0.0"},"peerDependencies":{"react":"^16.0.0 || ^17.0.0"},"scripts":{"prebuild":"rimraf build","build":"rollup --config","postbuild":"node ./scripts/copyFiles.js","lint":"eslint --ignore-path .gitignore .","test":"jest","test:debug":"node --inspect-brk node_modules/jest/bin/jest.js --runInBand --no-cache"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":"eslint --cache --fix"},"_id":"react-shallow-renderer@16.14.1","_nodeVersion":"12.18.2","_npmVersion":"6.14.5","dist":{"shasum":"bf0d02df8a519a558fd9b8215442efa5c840e124","size":30756,"noattachment":false,"key":"/react-shallow-renderer/-/react-shallow-renderer-16.14.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-shallow-renderer/download/react-shallow-renderer-16.14.1.tgz"},"maintainers":[{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},{"name":"gaearon","email":""},{"name":"ljharb","email":""},{"name":"minh.nguyen","email":"minhnguyenxx@gmail.com"},{"name":"trueadm","email":"dg@domgan.com"}],"_npmUser":{"name":"minh.nguyen","email":"minhnguyenxx@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-shallow-renderer_16.14.1_1603281381116_0.917122981508514"},"_hasShrinkwrap":false,"publish_time":1603281381328,"_cnpm_publish_time":1603281381328},"16.14.0":{"name":"react-shallow-renderer","version":"16.14.0","description":"React package for shallow rendering.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/NMinhNguyen/react-shallow-renderer.git"},"keywords":["react","react-native","react-testing"],"license":"MIT","bugs":{"url":"https://github.com/NMinhNguyen/react-shallow-renderer/issues"},"homepage":"https://reactjs.org/","dependencies":{"object-assign":"^4.1.1","react-is":"^16.12.0 || ^17.0.0"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.8.6","@babel/plugin-proposal-class-properties":"^7.8.3","@babel/plugin-proposal-object-rest-spread":"^7.8.3","@babel/plugin-transform-classes":"^7.8.6","@babel/plugin-transform-react-jsx-source":"^7.8.3","@babel/plugin-transform-template-literals":"^7.8.3","@babel/preset-env":"^7.8.6","@babel/preset-react":"^7.8.3","@rollup/plugin-commonjs":"^11.0.1","@rollup/plugin-node-resolve":"^7.0.0","@rollup/plugin-replace":"^2.3.0","babel-eslint":"^10.1.0","babel-jest":"^25.1.0","confusing-browser-globals":"^1.0.9","eslint":"^6.8.0","eslint-config-prettier":"^6.10.0","eslint-plugin-jest":"^23.8.0","eslint-plugin-prettier":"^3.1.2","eslint-plugin-react":"^7.18.3","fs-extra":"^8.1.0","husky":"^4.2.3","jest":"^25.1.0","jest-diff":"^25.1.0","lint-staged":"^10.0.8","prettier":"1.19.1","react":"^16.12.0","rimraf":"^3.0.1","rollup":"^1.30.1","rollup-plugin-babel":"^4.3.3","rollup-plugin-strip-banner":"^1.0.0"},"peerDependencies":{"react":"^16.0.0 || ^17.0.0"},"scripts":{"prebuild":"rimraf build","build":"rollup --config","postbuild":"node ./scripts/copyFiles.js","lint":"eslint --ignore-path .gitignore .","test":"jest","test:debug":"node --inspect-brk node_modules/jest/bin/jest.js --runInBand --no-cache"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":"eslint --cache --fix"},"gitHead":"5c131d826815bc1b3afff568732d2363c090c588","_id":"react-shallow-renderer@16.14.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"shasum":"a8d5cc7d9b3f61aed7ec74ebef5af786de37d83e","size":2795,"noattachment":false,"key":"/react-shallow-renderer/-/react-shallow-renderer-16.14.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-shallow-renderer/download/react-shallow-renderer-16.14.0.tgz"},"maintainers":[{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},{"name":"gaearon","email":""},{"name":"ljharb","email":""},{"name":"minh.nguyen","email":"minhnguyenxx@gmail.com"},{"name":"trueadm","email":"dg@domgan.com"}],"_npmUser":{"name":"gaearon","email":"dan.abramov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-shallow-renderer_16.14.0_1603232948135_0.5965493828390493"},"_hasShrinkwrap":false,"publish_time":1603232948260,"_cnpm_publish_time":1603232948260,"deprecated":"This release is broken, use react-shallow-renderer@16.14.1 instead"},"16.13.1":{"name":"react-shallow-renderer","version":"16.13.1","description":"React package for shallow rendering.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/NMinhNguyen/react-shallow-renderer.git"},"keywords":["react","react-native","react-testing"],"license":"MIT","bugs":{"url":"https://github.com/NMinhNguyen/react-shallow-renderer/issues"},"homepage":"https://reactjs.org/","dependencies":{"object-assign":"^4.1.1","react-is":"^16.12.0"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.8.6","@babel/plugin-proposal-class-properties":"^7.8.3","@babel/plugin-proposal-object-rest-spread":"^7.8.3","@babel/plugin-transform-classes":"^7.8.6","@babel/plugin-transform-react-jsx-source":"^7.8.3","@babel/plugin-transform-template-literals":"^7.8.3","@babel/preset-env":"^7.8.6","@babel/preset-react":"^7.8.3","@rollup/plugin-commonjs":"^11.0.1","@rollup/plugin-node-resolve":"^7.0.0","@rollup/plugin-replace":"^2.3.0","babel-eslint":"^10.1.0","babel-jest":"^25.1.0","confusing-browser-globals":"^1.0.9","eslint":"^6.8.0","eslint-config-prettier":"^6.10.0","eslint-plugin-jest":"^23.8.0","eslint-plugin-prettier":"^3.1.2","eslint-plugin-react":"^7.18.3","fs-extra":"^8.1.0","husky":"^4.2.3","jest":"^25.1.0","jest-diff":"^25.1.0","lint-staged":"^10.0.8","prettier":"1.19.1","react":"^16.12.0","rimraf":"^3.0.1","rollup":"^1.30.1","rollup-plugin-babel":"^4.3.3","rollup-plugin-strip-banner":"^1.0.0"},"peerDependencies":{"react":"^16.0.0"},"scripts":{"prebuild":"rimraf build","build":"rollup --config","postbuild":"node ./scripts/copyFiles.js","lint":"eslint --ignore-path .gitignore .","test":"jest","test:debug":"node --inspect-brk node_modules/jest/bin/jest.js --runInBand --no-cache"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":"eslint --cache --fix"},"_id":"react-shallow-renderer@16.13.1","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"shasum":"4cfd6dc0f05a8d4d261ff7a80e9b88f15491a00a","size":30487,"noattachment":false,"key":"/react-shallow-renderer/-/react-shallow-renderer-16.13.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-shallow-renderer/download/react-shallow-renderer-16.13.1.tgz"},"maintainers":[{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},{"name":"gaearon","email":""},{"name":"ljharb","email":""},{"name":"minh.nguyen","email":"minhnguyenxx@gmail.com"},{"name":"trueadm","email":"dg@domgan.com"}],"_npmUser":{"name":"minh.nguyen","email":"minhnguyenxx@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-shallow-renderer_16.13.1_1584399734059_0.45039699918656284"},"_hasShrinkwrap":false,"publish_time":1584399734219,"_cnpm_publish_time":1584399734219},"16.13.0":{"name":"react-shallow-renderer","version":"16.13.0","description":"React package for shallow rendering.","main":"index.js","module":"esm/index.js","repository":{"type":"git","url":"git+https://github.com/NMinhNguyen/react-shallow-renderer.git"},"keywords":["react","react-native","react-testing"],"license":"MIT","bugs":{"url":"https://github.com/NMinhNguyen/react-shallow-renderer/issues"},"homepage":"https://reactjs.org/","dependencies":{"object-assign":"^4.1.1","react-is":"^16.12.0"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.8.6","@babel/plugin-proposal-class-properties":"^7.8.3","@babel/plugin-proposal-object-rest-spread":"^7.8.3","@babel/plugin-transform-classes":"^7.8.6","@babel/plugin-transform-react-jsx-source":"^7.8.3","@babel/plugin-transform-template-literals":"^7.8.3","@babel/preset-env":"^7.8.6","@babel/preset-react":"^7.8.3","@rollup/plugin-commonjs":"^11.0.1","@rollup/plugin-node-resolve":"^7.0.0","@rollup/plugin-replace":"^2.3.0","babel-eslint":"^10.1.0","babel-jest":"^25.1.0","confusing-browser-globals":"^1.0.9","eslint":"^6.8.0","eslint-config-prettier":"^6.10.0","eslint-plugin-jest":"^23.8.0","eslint-plugin-prettier":"^3.1.2","eslint-plugin-react":"^7.18.3","fs-extra":"^8.1.0","husky":"^4.2.3","jest":"^25.1.0","jest-diff":"^25.1.0","lint-staged":"^10.0.8","prettier":"1.19.1","react":"^16.12.0","rimraf":"^3.0.1","rollup":"^1.30.1","rollup-plugin-babel":"^4.3.3","rollup-plugin-strip-banner":"^1.0.0"},"peerDependencies":{"react":"^16.0.0"},"scripts":{"prebuild":"rimraf build","build":"rollup --config","postbuild":"node ./scripts/copyFiles.js","lint":"eslint --ignore-path .gitignore .","test":"jest","test:debug":"node --inspect-brk node_modules/jest/bin/jest.js --runInBand --no-cache"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":"eslint --cache --fix"},"_id":"react-shallow-renderer@16.13.0","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"shasum":"18defe59ac922a9623fcbb8bed8db0da7c728fd4","size":30497,"noattachment":false,"key":"/react-shallow-renderer/-/react-shallow-renderer-16.13.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-shallow-renderer/download/react-shallow-renderer-16.13.0.tgz"},"maintainers":[{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},{"name":"gaearon","email":""},{"name":"ljharb","email":""},{"name":"minh.nguyen","email":"minhnguyenxx@gmail.com"},{"name":"trueadm","email":"dg@domgan.com"}],"_npmUser":{"name":"minh.nguyen","email":"minhnguyenxx@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-shallow-renderer_16.13.0_1582898532499_0.3009699462696833"},"_hasShrinkwrap":false,"publish_time":1582898532631,"_cnpm_publish_time":1582898532631},"16.12.0":{"name":"react-shallow-renderer","version":"16.12.0","description":"React package for shallow rendering.","main":"index.js","module":"esm/index.js","repository":{"type":"git","url":"git+https://github.com/NMinhNguyen/react-shallow-renderer.git"},"keywords":["react","react-native","react-testing"],"license":"MIT","bugs":{"url":"https://github.com/NMinhNguyen/react-shallow-renderer/issues"},"homepage":"https://reactjs.org/","dependencies":{"object-assign":"^4.1.1","prop-types":"^15.7.2","react-is":"^16.12.0"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.8.4","@babel/plugin-proposal-class-properties":"^7.8.3","@babel/plugin-proposal-object-rest-spread":"^7.8.3","@babel/plugin-transform-classes":"^7.8.3","@babel/plugin-transform-react-jsx-source":"^7.8.3","@babel/plugin-transform-template-literals":"^7.8.3","@babel/preset-env":"^7.8.4","@babel/preset-react":"^7.8.3","@rollup/plugin-commonjs":"^11.0.1","@rollup/plugin-node-resolve":"^7.0.0","@rollup/plugin-replace":"^2.3.0","babel-jest":"^25.1.0","fs-extra":"^8.1.0","jest":"^25.1.0","jest-diff":"^25.1.0","react":"^16.12.0","rimraf":"^3.0.1","rollup":"^1.30.1","rollup-plugin-babel":"^4.3.3","rollup-plugin-strip-banner":"^1.0.0"},"peerDependencies":{"react":"^16.0.0"},"scripts":{"prebuild":"rimraf build","build":"rollup --config","postbuild":"node ./scripts/copyFiles.js","test":"jest","test:debug":"node --inspect-brk node_modules/jest/bin/jest.js --runInBand --no-cache"},"_id":"react-shallow-renderer@16.12.0","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"shasum":"e68ca8fca7a616db42c36fdd6929723ba0bccef6","size":28756,"noattachment":false,"key":"/react-shallow-renderer/-/react-shallow-renderer-16.12.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-shallow-renderer/download/react-shallow-renderer-16.12.0.tgz"},"maintainers":[{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},{"name":"gaearon","email":""},{"name":"ljharb","email":""},{"name":"minh.nguyen","email":"minhnguyenxx@gmail.com"},{"name":"trueadm","email":"dg@domgan.com"}],"_npmUser":{"name":"minh.nguyen","email":"minhnguyenxx@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-shallow-renderer_16.12.0_1582742096500_0.3934005678500754"},"_hasShrinkwrap":false,"publish_time":1582742096597,"_cnpm_publish_time":1582742096597},"1.1.4":{"name":"react-shallow-renderer","version":"1.1.4","description":"Simple wrapper for `react-addons-test-utils` `createRenderer` method.","main":"lib/index.js","scripts":{"build":"babel --stage 0 src/index.js > lib/index.js","prepublish":"npm run build"},"author":{"name":"David Mark Clements"},"license":"MIT","devDependencies":{"babel":"^5.8.23"},"dependencies":{"react":"^0.14.0","react-addons-test-utils":"^0.14.0"},"repository":{"type":"git","url":"git+https://github.com/davidmarkclements/react-shallow-renderer.git"},"bugs":{"url":"https://github.com/davidmarkclements/react-shallow-renderer/issues"},"homepage":"https://github.com/davidmarkclements/react-shallow-renderer#readme","gitHead":"6946f590486675f87a9a2d89555b1c1784bd0a98","_id":"react-shallow-renderer@1.1.4","_shasum":"560ee0d8a645fb9d120b03ef8a14846b2ed7d31c","_from":".","_npmVersion":"2.11.1","_nodeVersion":"0.12.7","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"560ee0d8a645fb9d120b03ef8a14846b2ed7d31c","size":1663,"noattachment":false,"key":"/react-shallow-renderer/-/react-shallow-renderer-1.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-shallow-renderer/download/react-shallow-renderer-1.1.4.tgz"},"maintainers":[{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},{"name":"gaearon","email":""},{"name":"ljharb","email":""},{"name":"minh.nguyen","email":"minhnguyenxx@gmail.com"},{"name":"trueadm","email":"dg@domgan.com"}],"directories":{},"publish_time":1444491272891,"_cnpm_publish_time":1444491272891,"_hasShrinkwrap":false},"1.1.3":{"name":"react-shallow-renderer","version":"1.1.3","description":"Simple wrapper for `react-addons-test-utils` `createRenderer` method.","main":"lib/index.js","scripts":{"build":"babel --stage 0 src/index.js > lib/index.js","prepublish":"npm run build"},"author":{"name":"David Mark Clements"},"license":"MIT","devDependencies":{"babel":"^5.8.23"},"dependencies":{"react":"^0.14.0","react-addons-test-utils":"^0.14.0"},"repository":{"type":"git","url":"git+https://github.com/davidmarkclements/react-shallow-renderer.git"},"bugs":{"url":"https://github.com/davidmarkclements/react-shallow-renderer/issues"},"homepage":"https://github.com/davidmarkclements/react-shallow-renderer#readme","gitHead":"3bf5a725afc8f219ae307589df9011b23657668b","_id":"react-shallow-renderer@1.1.3","_shasum":"d3cec27401ae70ede068dcd62bd27d55b40a13e3","_from":".","_npmVersion":"2.11.1","_nodeVersion":"0.12.7","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"d3cec27401ae70ede068dcd62bd27d55b40a13e3","size":1650,"noattachment":false,"key":"/react-shallow-renderer/-/react-shallow-renderer-1.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-shallow-renderer/download/react-shallow-renderer-1.1.3.tgz"},"maintainers":[{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},{"name":"gaearon","email":""},{"name":"ljharb","email":""},{"name":"minh.nguyen","email":"minhnguyenxx@gmail.com"},{"name":"trueadm","email":"dg@domgan.com"}],"directories":{},"publish_time":1444480944587,"_cnpm_publish_time":1444480944587,"_hasShrinkwrap":false},"1.1.2":{"name":"react-shallow-renderer","version":"1.1.2","description":"Simple wrapper for `react-addons-test-utils` `createRenderer` method.","main":"lib/index.js","scripts":{"build":"babel --stage 0 src/index.js > lib/index.js","prepublish":"npm run build"},"author":{"name":"David Mark Clements"},"license":"MIT","devDependencies":{"babel":"^5.8.23"},"dependencies":{"react":"^0.14.0","react-addons-test-utils":"^0.14.0"},"repository":{"type":"git","url":"git+https://github.com/davidmarkclements/react-shallow-renderer.git"},"bugs":{"url":"https://github.com/davidmarkclements/react-shallow-renderer/issues"},"homepage":"https://github.com/davidmarkclements/react-shallow-renderer#readme","gitHead":"3cb95d4de4f48043508a1760e8bdf04de26575b0","_id":"react-shallow-renderer@1.1.2","_shasum":"7de4e25289220f7cd2c33f120b084833ffe92b36","_from":".","_npmVersion":"2.11.1","_nodeVersion":"0.12.7","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"7de4e25289220f7cd2c33f120b084833ffe92b36","size":1612,"noattachment":false,"key":"/react-shallow-renderer/-/react-shallow-renderer-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-shallow-renderer/download/react-shallow-renderer-1.1.2.tgz"},"maintainers":[{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},{"name":"gaearon","email":""},{"name":"ljharb","email":""},{"name":"minh.nguyen","email":"minhnguyenxx@gmail.com"},{"name":"trueadm","email":"dg@domgan.com"}],"directories":{},"publish_time":1444472779320,"_cnpm_publish_time":1444472779320,"_hasShrinkwrap":false},"1.1.1":{"name":"react-shallow-renderer","version":"1.1.1","description":"Simple wrapper for `react-addons-test-utils` `createRenderer` method.","main":"lib/index.js","scripts":{"build":"babel --stage 0 src/index.js > lib/index.js","prepublish":"npm run build"},"author":{"name":"David Mark Clements"},"license":"MIT","devDependencies":{"babel":"^5.8.23"},"dependencies":{"react":"^0.14.0","react-addons-test-utils":"^0.14.0"},"repository":{"type":"git","url":"git+https://github.com/davidmarkclements/react-shallow-renderer.git"},"bugs":{"url":"https://github.com/davidmarkclements/react-shallow-renderer/issues"},"homepage":"https://github.com/davidmarkclements/react-shallow-renderer#readme","gitHead":"1e92a478b8c7400d966a4882d158a4a6b756510d","_id":"react-shallow-renderer@1.1.1","_shasum":"6b2db5664b5dd3dfe93bc01f723782b7c0e418ce","_from":".","_npmVersion":"2.11.1","_nodeVersion":"0.12.7","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"6b2db5664b5dd3dfe93bc01f723782b7c0e418ce","size":1610,"noattachment":false,"key":"/react-shallow-renderer/-/react-shallow-renderer-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-shallow-renderer/download/react-shallow-renderer-1.1.1.tgz"},"maintainers":[{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},{"name":"gaearon","email":""},{"name":"ljharb","email":""},{"name":"minh.nguyen","email":"minhnguyenxx@gmail.com"},{"name":"trueadm","email":"dg@domgan.com"}],"directories":{},"publish_time":1444472677818,"_cnpm_publish_time":1444472677818,"_hasShrinkwrap":false},"1.1.0":{"name":"react-shallow-renderer","version":"1.1.0","description":"Simple wrapper for `react-addons-test-utils` `createRenderer` method.","main":"lib/index.js","scripts":{"build":"babel --stage 0 src/index.js > lib/index.js","prepublish":"npm run build"},"author":{"name":"David Mark Clements"},"license":"MIT","devDependencies":{"babel":"^5.8.23"},"dependencies":{"react":"^0.14.0","react-addons-test-utils":"^0.14.0"},"repository":{"type":"git","url":"git+https://github.com/davidmarkclements/react-shallow-renderer.git"},"bugs":{"url":"https://github.com/davidmarkclements/react-shallow-renderer/issues"},"homepage":"https://github.com/davidmarkclements/react-shallow-renderer#readme","gitHead":"de25204ff2541f0b3f2a72d9b1bddd5621fbc247","_id":"react-shallow-renderer@1.1.0","_shasum":"87dc5e38b42f86528578709ffeab6a9576198e03","_from":".","_npmVersion":"2.11.1","_nodeVersion":"0.12.7","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"87dc5e38b42f86528578709ffeab6a9576198e03","size":1648,"noattachment":false,"key":"/react-shallow-renderer/-/react-shallow-renderer-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-shallow-renderer/download/react-shallow-renderer-1.1.0.tgz"},"maintainers":[{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},{"name":"gaearon","email":""},{"name":"ljharb","email":""},{"name":"minh.nguyen","email":"minhnguyenxx@gmail.com"},{"name":"trueadm","email":"dg@domgan.com"}],"directories":{},"publish_time":1444472388302,"_cnpm_publish_time":1444472388302,"_hasShrinkwrap":false},"1.0.1":{"name":"react-shallow-renderer","version":"1.0.1","description":"Simple wrapper for `react-addons-test-utils` `createRenderer` method.","main":"lib/index.js","scripts":{"build":"babel --stage 0 src/index.js > lib/index.js","prepublish":"npm run build"},"author":{"name":"David Mark Clements"},"license":"MIT","devDependencies":{"babel":"^5.8.23"},"dependencies":{"react":"^0.14.0","react-addons-test-utils":"^0.14.0"},"repository":{"type":"git","url":"git+https://github.com/davidmarkclements/react-shallow-renderer.git"},"bugs":{"url":"https://github.com/davidmarkclements/react-shallow-renderer/issues"},"homepage":"https://github.com/davidmarkclements/react-shallow-renderer#readme","gitHead":"03fdafdcc5702be8d4dea23c028f615d751b9bdd","_id":"react-shallow-renderer@1.0.1","_shasum":"e2bb4cfd2560a91b16cd0b6ab119cbfffb1b4a6d","_from":".","_npmVersion":"2.11.1","_nodeVersion":"0.12.7","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"e2bb4cfd2560a91b16cd0b6ab119cbfffb1b4a6d","size":1251,"noattachment":false,"key":"/react-shallow-renderer/-/react-shallow-renderer-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-shallow-renderer/download/react-shallow-renderer-1.0.1.tgz"},"maintainers":[{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},{"name":"gaearon","email":""},{"name":"ljharb","email":""},{"name":"minh.nguyen","email":"minhnguyenxx@gmail.com"},{"name":"trueadm","email":"dg@domgan.com"}],"directories":{},"publish_time":1444470750468,"_cnpm_publish_time":1444470750468,"_hasShrinkwrap":false},"1.0.0":{"name":"react-shallow-renderer","version":"1.0.0","description":"Simple wrapper for `react-addons-test-utils` `createRenderer` method.","main":"lib/index.js","scripts":{"build":"babel --stage 0 src/index.js > lib/index.js","prepublish":"npm run build"},"author":{"name":"David Mark Clements"},"license":"MIT","devDependencies":{"babel":"^5.8.23"},"dependencies":{"react":"^0.14.0","react-addons-test-utils":"^0.14.0"},"repository":{"type":"git","url":"git+https://github.com/davidmarkclements/react-shallow-renderer.git"},"bugs":{"url":"https://github.com/davidmarkclements/react-shallow-renderer/issues"},"homepage":"https://github.com/davidmarkclements/react-shallow-renderer#readme","gitHead":"12b7f545912376614ebfb072d52fa9682c22bdf5","_id":"react-shallow-renderer@1.0.0","_shasum":"e1065a5ca32d010539acfa27f123efa78544a589","_from":".","_npmVersion":"2.11.1","_nodeVersion":"0.12.7","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"e1065a5ca32d010539acfa27f123efa78544a589","size":1229,"noattachment":false,"key":"/react-shallow-renderer/-/react-shallow-renderer-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-shallow-renderer/download/react-shallow-renderer-1.0.0.tgz"},"maintainers":[{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},{"name":"gaearon","email":""},{"name":"ljharb","email":""},{"name":"minh.nguyen","email":"minhnguyenxx@gmail.com"},{"name":"trueadm","email":"dg@domgan.com"}],"directories":{},"publish_time":1444454712829,"_cnpm_publish_time":1444454712829,"_hasShrinkwrap":false}},"readme":"# `react-shallow-renderer`\n\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/NMinhNguyen/react-shallow-renderer/blob/master/LICENSE)\n[![npm version](https://img.shields.io/npm/v/react-shallow-renderer)](https://www.npmjs.com/package/react-shallow-renderer)\n[![CircleCI](https://img.shields.io/circleci/build/github/NMinhNguyen/react-shallow-renderer)](https://circleci.com/gh/NMinhNguyen/react-shallow-renderer/tree/master)\n\nWhen writing unit tests for React, shallow rendering can be helpful. Shallow rendering lets you render a component \"one level deep\" and assert facts about what its render method returns, without worrying about the behavior of child components, which are not instantiated or rendered. This does not require a DOM.\n\n## Installation\n\n```sh\n# npm\nnpm install react-shallow-renderer --save-dev\n\n# Yarn\nyarn add react-shallow-renderer --dev\n```\n\n## Usage\n\nFor example, if you have the following component:\n\n```jsx\nfunction MyComponent() {\n  return (\n    <div>\n      <span className=\"heading\">Title</span>\n      <Subcomponent foo=\"bar\" />\n    </div>\n  );\n}\n```\n\nThen you can assert:\n\n```jsx\nimport ShallowRenderer from 'react-shallow-renderer';\n// in your test:\nconst renderer = new ShallowRenderer();\nrenderer.render(<MyComponent />);\nconst result = renderer.getRenderOutput();\nexpect(result.type).toBe('div');\nexpect(result.props.children).toEqual([\n  <span className=\"heading\">Title</span>,\n  <Subcomponent foo=\"bar\" />,\n]);\n```\n\nShallow testing currently has some limitations, namely not supporting refs.\n\n> Note:\n>\n> We also recommend checking out Enzyme's [Shallow Rendering API](https://airbnb.io/enzyme/docs/api/shallow.html). It provides a nicer higher-level API over the same functionality.\n\n## Reference\n\n### `shallowRenderer.render()`\n\nYou can think of the shallowRenderer as a \"place\" to render the component you're testing, and from which you can extract the component's output.\n\n`shallowRenderer.render()` is similar to [`ReactDOM.render()`](https://reactjs.org/docs/react-dom.html#render) but it doesn't require DOM and only renders a single level deep. This means you can test components isolated from how their children are implemented.\n\n### `shallowRenderer.getRenderOutput()`\n\nAfter `shallowRenderer.render()` has been called, you can use `shallowRenderer.getRenderOutput()` to get the shallowly rendered output.\n\nYou can then begin to assert facts about the output.\n","_attachments":{},"homepage":"https://reactjs.org/","bugs":{"url":"https://github.com/NMinhNguyen/react-shallow-renderer/issues"},"license":"MIT"}