{"name":"jest-matcher-deep-close-to","version":"1.3.0","description":"Extend jest to assert arrays with approximate values","main":"lib/index.js","module":"src/index.js","files":["lib","src"],"scripts":{"eslint":"eslint src","eslint-fix":"npm run eslint -- --fix","prepublish":"rollup -c","test":"run-s testonly eslint","test-travis":"eslint src && jest --coverage && codecov","testonly":"jest"},"repository":{"type":"git","url":"git+https://github.com/maasencioh/jest-matcher-deep-close-to.git"},"keywords":[],"author":{"name":"Miguel Angel Asencio Hurtado"},"license":"MIT","bugs":{"url":"https://github.com/maasencioh/jest-matcher-deep-close-to/issues"},"homepage":"https://github.com/maasencioh/jest-matcher-deep-close-to#readme","jest":{"testEnvironment":"node"},"devDependencies":{"babel-plugin-transform-es2015-modules-commonjs":"^6.24.1","codecov":"^3.0.1","eslint":"^4.17.0","eslint-config-cheminfo":"^1.15.1","eslint-plugin-import":"^2.8.0","eslint-plugin-jest":"^21.9.0","eslint-plugin-no-only-tests":"^2.0.0","jest":"^22.4.3","npm-run-all":"^4.0.2","rollup":"^0.58.2"},"gitHead":"7cb5deda033d8b4c29b31bcf3a6561c6a441b598","_id":"jest-matcher-deep-close-to@1.3.0","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"maasencioh","email":"maasencioh@gmail.com"},"dist":{"integrity":"sha512-Qh8PRu0elJVLNpYKXULumZ4KW+iEKbi92v8hXStaYUUk6G9K3BRe1hkqs8Y++aqVQ8YLOUvpwmCBJcxPEtddFw==","shasum":"9b63fa1d582d1ce25655ed688e8e87dc81caa459","tarball":"http://registry-npm.ywwl.com/jest-matcher-deep-close-to/download/jest-matcher-deep-close-to-1.3.0.tgz","fileCount":6,"unpackedSize":17393,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa49oTCRA9TVsSAnZWagAAnvQQAJeasiU0ytSSw33uJdc4\n2Fqv4zBV7+natj3L98ya2tAZu6YB5jW0zevCpwn6yGuL1CBzcZfsAH85sKeU\nMzOUUx6tEaTsXL44AbAL524hBmB1ojhj1KeB9c9ylsJNAnyjuCidxxURwzHO\nDrBMLmT3VJk0F3LS4b4mxnnpXTxFIEnX7XLL4ZEQtzAg4WhwRNarfVfuRuQA\nO4Cpp5IYnO/X/u4mP9JpcZkhH4lXABw0Y1w9TkAmsdSzu5YQz4NlpnBqsx+F\nAscoH0sKCey6ajkFXgSJWl6G/F6c3zHSJfciV9EuN+7zooHyKxiLzHTVp7RU\nWN3VXDdhuZnGmdROyzgsIXEpGgSrkA0MUGaHfXTDyOF0CFwrPcJ1G3HvfEbO\n4HcE9gh4fnRaSP4ha7b9Sd0VoilOcClaX0qWHhoJTK8+113HmE4qpmoge2Qt\n/HZNEyIaXdzwFrp37/e25KE0K3n8PjnNODTzvOhXfMsqCz/B9eGMZRq9FiXQ\nGzD5zI9deklA2N/elL+lqTJ90OSFdFYBckzT0xreaTiDCbwPtkJiSl1U6MbJ\nOWdE6oOYqOWculhZJXHqvfYVrYE9Q2rgsHFi9mGoaSDU0eVHLcGqTq2ty4nu\noPpsExr8jpl9NBDr/HJZeFVN+JyEvC5GEfKZN6FXo/4EG9UCQiJLD+e8wGFP\nwMcn\r\n=8VRo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA3wdODR0H+q9a0n7GqebYnczclCnFcDgC6gwyOmiFWeAiEAvRT7m40Be1PzT23LpfqkNRqKuReWvu5DA9SG3ePuo1A="}],"size":3717,"noattachment":false,"key":"/jest-matcher-deep-close-to/-/jest-matcher-deep-close-to-1.3.0.tgz"},"maintainers":[{"name":"maasencioh","email":"maasencioh@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-matcher-deep-close-to_1.3.0_1524881939243_0.5012725187741267"},"_hasShrinkwrap":false,"readme":"# jest-matcher-deep-close-to\n\n[![NPM version][npm-image]][npm-url]\n[![build status][ci-image]][ci-url]\n[![npm download][download-image]][download-url]\n\nExtend jest to assert arrays and objects with approximate values.\n\n## Installation\n\n`$ npm i -D jest-matcher-deep-close-to`\n\n## Usage\n\n```js\nimport {toBeDeepCloseTo,toMatchCloseTo} from 'jest-matcher-deep-close-to';\nexpect.extend({toBeDeepCloseTo, toMatchCloseTo});\n\ndescribe('test myModule', () => {\n    it('should return 42', () => {\n        expect([42.0003]).toBeDeepCloseTo([42.0004], 3);\n    });\n});\n\ndescribe('test myModule', () => {\n    it('should return 42', () => {\n        expect({ foo: 42.0003,  bar: \"xxx\", baz: \"yyy\"})\n            .toMatchCloseTo({ foo: 42.004, bar: \"xxx\" }, 3);\n    });\n});\n```\n\n## License\n\n[MIT](./LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/jest-matcher-deep-close-to.svg\n[npm-url]: https://www.npmjs.com/package/jest-matcher-deep-close-to\n[ci-image]: https://github.com/maasencioh/jest-matcher-deep-close-to/workflows/Node.js%20CI/badge.svg?branch=master\n[ci-url]: https://github.com/maasencioh/jest-matcher-deep-close-to/actions?query=workflow%3A%22Node.js+CI%22\n[download-image]: https://img.shields.io/npm/dm/jest-matcher-deep-close-to.svg\n[download-url]: https://www.npmjs.com/package/jest-matcher-deep-close-to\n","publish_time":1524881939332,"_cnpm_publish_time":1524881939332,"dist-tags":{"latest":"3.0.2"}}