{"_id":"react-native-svg-mock","_rev":"108-14251cd3b66b59f6c5646cf6fd6e56c5","name":"react-native-svg-mock","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"react-native-svg-mock","version":"1.0.0","keywords":["react","react-native","react-native-svg","mock","testing"],"author":{"name":"Brian Mathews","email":"brian.mathews@formidable.com"},"license":"MIT","_id":"react-native-svg-mock@1.0.0","maintainers":[{"name":"formidable","email":"admin@formidablelabs.com"}],"homepage":"https://github.com/FormidableLabs/react-native-svg-mock#readme","bugs":{"url":"https://github.com/FormidableLabs/react-native-svg-mock/issues"},"dist":{"shasum":"d63e88a6add7eb826225b9863818bdd76acbd82a","tarball":"https://registry.npmjs.org/react-native-svg-mock/-/react-native-svg-mock-1.0.0.tgz","integrity":"sha512-xfWzpS93mYLUOAlsRUVKAdzZGIuXo3qpR9cYQ4UA0ubdYRI87aESDqjyCNQZcEUMqzg3dnBzigbOToJYMY39hA==","signatures":[{"sig":"MEUCIC6S0ypt4u/4mK+nzBYDWXbyevdujbe4nRvBNj+yKHCtAiEA5LTvuHBe7G/f8T5l9RHyXRnUNIABcE1viwkKSNOmzrc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"d63e88a6add7eb826225b9863818bdd76acbd82a","gitHead":"b30e6eb7f74d45deeb732aec947d69c8b3ad4901","scripts":{"lint":"eslint index.js","test":"npm run lint && npm run mocha","mocha":"mocha test/test.js"},"_npmUser":{"name":"formidable","email":"admin@formidablelabs.com"},"repository":{"url":"git+https://github.com/FormidableLabs/react-native-svg-mock.git","type":"git"},"_npmVersion":"3.10.3","description":"A mock implementation of react-native-svg for use in tests.","directories":{},"_nodeVersion":"6.3.0","devDependencies":{"chai":"^3.5.0","mocha":"^3.0.2","react":"^15.3.0","enzyme":"^2.4.1","eslint":"^2.0.0","react-dom":"^15.3.0","react-native-mock":"^0.2.5","eslint-plugin-react":"^3.12.0","eslint-config-defaults":"^10.0.0-1","eslint-plugin-filenames":"^0.2.0"},"peerDependencies":{"react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-native-svg-mock-1.0.0.tgz_1470865872042_0.5875342623330653","host":"packages-12-west.internal.npmjs.com"}},"1.0.1":{"name":"react-native-svg-mock","version":"1.0.1","keywords":["react","react-native","react-native-svg","mock","testing"],"author":{"name":"Brian Mathews","email":"brian.mathews@formidable.com"},"license":"MIT","_id":"react-native-svg-mock@1.0.1","maintainers":[{"name":"formidable","email":"admin@formidablelabs.com"}],"homepage":"https://github.com/FormidableLabs/react-native-svg-mock#readme","bugs":{"url":"https://github.com/FormidableLabs/react-native-svg-mock/issues"},"dist":{"shasum":"e270b309d6fbac3db5a78d270d845a0bdb9b4c62","tarball":"https://registry.npmjs.org/react-native-svg-mock/-/react-native-svg-mock-1.0.1.tgz","integrity":"sha512-rspCjnTOGYpgN0sKd7AEEogTwGrLhCm1fVBVHgLDkjGn3P1D5LXt0uBmz7LwXBiZuhfkk7wAHv1EdbP9IjsxPg==","signatures":[{"sig":"MEQCIDjIkGS3/a3bcpiEu/30jensU56X5PrCnxXdSl5unEByAiB+FTwPw6AdTdmq83cWNzca133JuWIL3gwilV4ODewmiw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"build/index.js","_from":".","_shasum":"e270b309d6fbac3db5a78d270d845a0bdb9b4c62","gitHead":"8dc5b925c4b761b94c2ad022a5d0b522b2567c33","scripts":{"lint":"eslint src","test":"npm run lint && npm run build && npm run mocha","build":"babel src --out-dir build","mocha":"mocha --require babel-core/register test/test.js","prepublish":"npm run build"},"_npmUser":{"name":"formidable","email":"admin@formidablelabs.com"},"repository":{"url":"git+https://github.com/FormidableLabs/react-native-svg-mock.git","type":"git"},"_npmVersion":"3.10.3","description":"A mock implementation of react-native-svg for use in tests.","directories":{},"_nodeVersion":"6.3.0","devDependencies":{"chai":"^3.5.0","babel":"^6.5.2","mocha":"^3.0.2","react":"^15.3.0","enzyme":"^2.4.1","eslint":"^2.0.0","babel-cli":"^6.11.4","react-dom":"^15.3.0","babel-core":"^6.13.2","babel-eslint":"^6.1.2","react-native-mock":"^0.2.5","eslint-plugin-react":"^3.12.0","eslint-config-defaults":"^10.0.0-1","eslint-plugin-filenames":"^0.2.0"},"peerDependencies":{"react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-native-svg-mock-1.0.1.tgz_1470870899552_0.15370031027123332","host":"packages-12-west.internal.npmjs.com"}},"1.0.2":{"name":"react-native-svg-mock","version":"1.0.2","keywords":["react","react-native","react-native-svg","mock","testing"],"author":{"name":"Brian Mathews","email":"brian.mathews@formidable.com"},"license":"MIT","_id":"react-native-svg-mock@1.0.2","maintainers":[{"name":"formidable","email":"admin@formidablelabs.com"}],"homepage":"https://github.com/FormidableLabs/react-native-svg-mock#readme","bugs":{"url":"https://github.com/FormidableLabs/react-native-svg-mock/issues"},"dist":{"shasum":"2dc35fb97ca1e0ea393ece6d23782ba4f58e178f","tarball":"https://registry.npmjs.org/react-native-svg-mock/-/react-native-svg-mock-1.0.2.tgz","integrity":"sha512-Mw+GRJTVbUBfI/HB86StUsqcwTPJnEp92bBEfZWMCDiaEODmj4ooURgBE7BxIJwNRoOpLhlgPPfdHnzBacO2hA==","signatures":[{"sig":"MEUCIQD1TwTih27rwPdSCfM1MZpInzaTb2ezi1X2l8Uk6wBEEAIgZ7eoiRAmvdUuZWjw9WietbOaZXp7T5fFHmyxc60FNG4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"build/index.js","_from":".","_shasum":"2dc35fb97ca1e0ea393ece6d23782ba4f58e178f","gitHead":"d4d7fdcd890ba704720fae1129b252fabcffc13a","scripts":{"lint":"eslint src","test":"npm run lint && npm run build && npm run mocha","build":"babel src --out-dir build","mocha":"mocha --require babel-core/register test/test.js","prepublish":"npm run build"},"_npmUser":{"name":"formidable","email":"admin@formidablelabs.com"},"repository":{"url":"git+https://github.com/FormidableLabs/react-native-svg-mock.git","type":"git"},"_npmVersion":"3.10.3","description":"A mock implementation of react-native-svg for use in tests.","directories":{},"_nodeVersion":"6.3.0","devDependencies":{"chai":"^3.5.0","babel":"^6.5.2","mocha":"^3.0.2","react":"^15.3.0","enzyme":"^2.4.1","eslint":"^2.0.0","babel-cli":"^6.11.4","react-dom":"^15.3.0","babel-core":"^6.13.2","babel-eslint":"^6.1.2","react-native-mock":"^0.2.5","eslint-plugin-react":"^3.12.0","eslint-config-defaults":"^10.0.0-1","eslint-plugin-filenames":"^0.2.0"},"peerDependencies":{"react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-native-svg-mock-1.0.2.tgz_1470871079719_0.2156253440771252","host":"packages-16-east.internal.npmjs.com"}},"1.1.0":{"name":"react-native-svg-mock","version":"1.1.0","keywords":["react","react-native","react-native-svg","mock","testing"],"author":{"name":"Brian Mathews","email":"brian.mathews@formidable.com"},"license":"MIT","_id":"react-native-svg-mock@1.1.0","maintainers":[{"name":"imranolas","email":"imranolas@gmail.com"},{"name":"baer","email":"me@ericbaer.com"},{"name":"coopy","email":"per@sproutlab.com"},{"name":"exogen","email":"exogen@gmail.com"},{"name":"chrisbolin","email":"bolin.chris@gmail.com"},{"name":"david-davidson","email":"david.davidson@formidablelabs.com"},{"name":"eastridge","email":"ryan@eastridge.me"},{"name":"boygirl","email":"lauren.eastridge@formidablelabs.com"},{"name":"stefvhuynh","email":"huynh.stefan@gmail.com"},{"name":"mhink","email":"mhink1103@gmail.com"},{"name":"jason.wilson","email":"jrwilson@gmail.com"},{"name":"tptee","email":"tyler@tylerpaulthompson.com"},{"name":"derekmaffett","email":"derekgmaffett@gmail.com"},{"name":"ebrillhart","email":"emma.brillhart@gmail.com"},{"name":"redfieldstefan","email":"redfield.stefan@gmail.com"},{"name":"thekenwheeler","email":"ken_wheeler@me.com"},{"name":"bmathews","email":"spoonart@gmail.com"},{"name":"kylecesmat","email":"kyle@kylecesmat.com"},{"name":"paulathevalley","email":"lavalle.paula@gmail.com"},{"name":"ryan.roemer","email":"ryan@loose-bits.com"},{"name":"formidable-owner","email":"admin@formidablelabs.com"}],"homepage":"https://github.com/FormidableLabs/react-native-svg-mock#readme","bugs":{"url":"https://github.com/FormidableLabs/react-native-svg-mock/issues"},"dist":{"shasum":"f32fd10f2481215a2378d7562d47e93fad87482f","tarball":"https://registry.npmjs.org/react-native-svg-mock/-/react-native-svg-mock-1.1.0.tgz","integrity":"sha512-McWGlzmMGX9vp0/zmNLcVtoVfgK7M9BU03LgP5ecZEX5tVpOinU3yj3GHpTvQ6q5pDGSGcJeEfN0N6Drjhk5mA==","signatures":[{"sig":"MEUCIQCHDX6neYQEqTbhTPyOT5HaJHpn/6n9vu6uv0j9pYAkSgIgVqLLDi5WlBqVb65mB1fdNtvSrDjF6UElZN9KYRdYA9c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"build/index.js","_from":".","_shasum":"f32fd10f2481215a2378d7562d47e93fad87482f","gitHead":"23b845dc95da84fd6c9a6af95cbea0af84a4c85e","scripts":{"lint":"eslint src","test":"npm run lint && npm run build && npm run mocha","build":"babel src --out-dir build","mocha":"mocha --require babel-core/register test/test.js","prepublish":"npm run build"},"_npmUser":{"name":"boygirl","email":"lauren.eastridge@formidablelabs.com"},"repository":{"url":"git+https://github.com/FormidableLabs/react-native-svg-mock.git","type":"git"},"_npmVersion":"3.10.9","description":"A mock implementation of react-native-svg for use in tests.","directories":{},"_nodeVersion":"6.9.2","devDependencies":{"chai":"^3.5.0","babel":"^6.5.2","mocha":"^3.0.2","react":"^15.5.1","enzyme":"^2.4.1","eslint":"^3.3.0","babel-cli":"^6.11.4","react-dom":"^15.5.1","babel-core":"^6.13.2","babel-eslint":"^6.1.2","react-native":"^0.45.0","react-native-mock":"^0.3.0","eslint-plugin-react":"^6.1.1","eslint-config-defaults":"^10.0.0-1","eslint-plugin-filenames":"^0.2.0","react-addons-test-utils":"^15.5.1","babel-preset-react-native":"^1.9.0"},"peerDependencies":{"react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-native-svg-mock-1.1.0.tgz_1497551020509_0.9429983799345791","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"react-native-svg-mock","version":"2.0.0","keywords":["react","react-native","react-native-svg","mock","testing"],"author":{"name":"Brian Mathews","email":"brian.mathews@formidable.com"},"license":"MIT","_id":"react-native-svg-mock@2.0.0","maintainers":[{"name":"imranolas","email":"imranolas@gmail.com"},{"name":"baer","email":"me@ericbaer.com"},{"name":"coopy","email":"per@sproutlab.com"},{"name":"exogen","email":"exogen@gmail.com"},{"name":"chrisbolin","email":"bolin.chris@gmail.com"},{"name":"david-davidson","email":"david.davidson@formidablelabs.com"},{"name":"eastridge","email":"ryan@eastridge.me"},{"name":"boygirl","email":"lauren.eastridge@formidablelabs.com"},{"name":"stefvhuynh","email":"huynh.stefan@gmail.com"},{"name":"mhink","email":"mhink1103@gmail.com"},{"name":"jason.wilson","email":"jrwilson@gmail.com"},{"name":"tptee","email":"tyler@tylerpaulthompson.com"},{"name":"derekmaffett","email":"derekgmaffett@gmail.com"},{"name":"ebrillhart","email":"emma.brillhart@gmail.com"},{"name":"redfieldstefan","email":"redfield.stefan@gmail.com"},{"name":"thekenwheeler","email":"ken_wheeler@me.com"},{"name":"bmathews","email":"spoonart@gmail.com"},{"name":"kylecesmat","email":"kyle@kylecesmat.com"},{"name":"paulathevalley","email":"lavalle.paula@gmail.com"},{"name":"ryan.roemer","email":"ryan@loose-bits.com"},{"name":"formidable-owner","email":"admin@formidablelabs.com"},{"name":"jevakallio","email":"jani.evakallio@gmail.com"}],"homepage":"https://github.com/FormidableLabs/react-native-svg-mock#readme","bugs":{"url":"https://github.com/FormidableLabs/react-native-svg-mock/issues"},"dist":{"shasum":"27f4793e860ec6cae783930e6afb54869f0a2ea9","tarball":"https://registry.npmjs.org/react-native-svg-mock/-/react-native-svg-mock-2.0.0.tgz","integrity":"sha512-+Op91zndXy+fUHZlcYo2YU3RzW5yXvKXE/mqMgYOdJLLS2kWwZBjAGt+CiKGl/+ZKnJ8/h0TWiiT0vCSv2NxEA==","signatures":[{"sig":"MEUCIQCSDw8H+zJie1Qx9kXKm9ekd+HV9FdCpWaiLSkp+L8VfAIgKEQQC6ohR8snDWI49vsCrNJA2ag0MqQPU1hxkN6afJc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"build/index.js","gitHead":"5885a2771856dd56ce8e13f676c5b90f5b593324","scripts":{"lint":"eslint src","test":"npm run lint && npm run build && npm run mocha","build":"babel src --out-dir build","mocha":"mocha --require babel-core/register test/test.js","prepublish":"npm run build"},"_npmUser":{"name":"boygirl","email":"lauren.eastridge@formidablelabs.com"},"repository":{"url":"git+https://github.com/FormidableLabs/react-native-svg-mock.git","type":"git"},"_npmVersion":"5.5.1","description":"A mock implementation of react-native-svg for use in tests.","directories":{},"_nodeVersion":"7.6.0","devDependencies":{"chai":"^3.5.0","babel":"^6.5.2","mocha":"^3.0.2","react":"^16.0.0","enzyme":"^3.1.0","eslint":"^2.0.0","babel-cli":"^6.11.4","react-dom":"^16.0.0","babel-core":"^6.13.2","prop-types":"^15.5.8","babel-eslint":"^6.1.2","react-native":"^0.50.0","eslint-plugin-react":"^6.10.3","eslint-plugin-import":"^2.2.0","enzyme-adapter-react-16":"^1.0.3","eslint-plugin-filenames":"^1.2.0","eslint-config-formidable":"^2.0.1","babel-preset-react-native":"^1.9.0"},"peerDependencies":{"react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-native-svg-mock-2.0.0.tgz_1510276361956_0.7553543972317129","host":"s3://npm-registry-packages"}}},"time":{"created":"2016-08-10T21:51:12.272Z","modified":"2026-07-20T21:16:52.296Z","1.0.0":"2016-08-10T21:51:12.272Z","1.0.1":"2016-08-10T23:14:59.777Z","1.0.2":"2016-08-10T23:18:01.671Z","1.1.0":"2017-06-15T18:23:40.590Z","2.0.0":"2017-11-10T01:12:42.029Z"},"bugs":{"url":"https://github.com/FormidableLabs/react-native-svg-mock/issues"},"author":{"name":"Brian Mathews","email":"brian.mathews@formidable.com"},"license":"MIT","homepage":"https://github.com/FormidableLabs/react-native-svg-mock#readme","keywords":["react","react-native","react-native-svg","mock","testing"],"repository":{"url":"git+https://github.com/FormidableLabs/react-native-svg-mock.git","type":"git"},"description":"A mock implementation of react-native-svg for use in tests.","maintainers":[{"email":"sarahmichelleegan@gmail.com","name":"sarmeyer"},{"email":"mariano.martinez@formidable.com","name":"mariano-formidable"},{"email":"ryan@loose-bits.com","name":"ryan.roemer"},{"email":"admin@formidablelabs.com","name":"formidable-owner"},{"email":"npm@formidablelabs.com","name":"formidablelabs"},{"email":"sarah.wright@formidable.com","name":"sarahformidable"},{"email":"senesealessandro@gmail.com","name":"ceceppa"}],"readme":"[![Build Status](https://travis-ci.org/FormidableLabs/react-native-svg-mock.svg?branch=master)](https://travis-ci.org/FormidableLabs/react-native-svg-mock) [![npm version](https://badge.fury.io/js/react-native-svg-mock.svg)](https://badge.fury.io/js/react-native-svg-mock)\n\n# react-native-svg-mock \n\nA mock implementation of [react-native-svg](https://github.com/magicismight/react-native-svg) for use in tests. Inspired by [react-native-mock](https://github.com/lelandrichardson/react-native-mock).\n\n## Install\n\nWith npm, do:\n\n```sh\nnpm install react-native-svg-mock --save-dev\n```\n\n## Usage\n```js\n/* file-that-runs-before-all-of-my-tests.js */\n\n// This will mutate `react-native-svg`'s require cache with `react-native-svg-mock`'s.\nrequire('react-native-svg-mock/mock'); // <-- side-effects!!!\n```\n\nOr, with something like [Mockery](https://github.com/mfncooper/mockery), do:\n\n```js\nimport mockery from \"mockery\";\nimport reactNativeSvgMock from \"react-native-svg-mock\";\n\nmockery.enable();\nmockery.registerMock(\"react-native-svg\", reactNativeSvgMock);\n```\n\nIn a test with [Enzyme](https://github.com/airbnb/enzyme) and [Mocha](https://github.com/mochajs/mocha), this could look like:\n\n```jsx\nimport \"react-native-mock/mock\";\nimport \"react-native-svg-mock/mock\";\n\nimport { render } from \"enzyme\";\nimport { expect } from \"chai\";\n\nimport { VictoryChart } from \"victory-native\";\n\ndescribe(\"<VictoryChart />\", function () {\n  it(\"should render\", function () {\n    var component = render(<VictoryChart />);\n    expect(component).to.have.length(1);\n  });\n});\n```\n","readmeFilename":"README.md"}