{"name":"jest-matcher-deep-close-to","version":"1.2.1","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":"^2.2.0","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":"^20.0.4","npm-run-all":"^4.0.2","rollup":"^0.45.2"},"gitHead":"3927fd8b11e1990261f43e566ef4a56305e73d37","_id":"jest-matcher-deep-close-to@1.2.1","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"maasencioh","email":"maasencioh@gmail.com"},"dist":{"integrity":"sha512-eEOd4QpQDe3biDtokuy2sSvU8oBFYSCetIYkTn2h6AtIy5iLR0hnYi0n671HKC6CjSvYXEz4IG8+YGU9FYKJVw==","shasum":"c3145115b6e45b43cbc5fe584a9f7bf7e47f95c2","tarball":"http://registry-npm.ywwl.com/jest-matcher-deep-close-to/download/jest-matcher-deep-close-to-1.2.1.tgz","fileCount":6,"unpackedSize":11515,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFXCV4x+0ZqF3sALl+7SHUlRysygl8FPlgMsMnBPBqlaAiAFiW4R+vxSPHXhTEulstAxB34gy3KNAIsLUuCshxhdgw=="}],"size":3144,"noattachment":false,"key":"/jest-matcher-deep-close-to/-/jest-matcher-deep-close-to-1.2.1.tgz"},"maintainers":[{"name":"maasencioh","email":"maasencioh@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-matcher-deep-close-to_1.2.1_1518439607962_0.53847321676886"},"_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":1518439608951,"_cnpm_publish_time":1518439608951,"dist-tags":{"latest":"3.0.2"}}