{"name":"jest-matcher-deep-close-to","version":"2.0.0","description":"Extend jest to assert arrays with approximate values","main":"./lib/index.js","module":"./lib-esm/index.js","types":"./lib/index.d.ts","keywords":["jest","jest-tests","jest-matchers","arrays"],"author":{"name":"Miguel Angel Asencio Hurtado"},"license":"MIT","scripts":{"clean":"rimraf lib lib-esm","eslint":"eslint src --ext ts --cache","eslint-fix":"npm run eslint -- --fix","prepublishOnly":"npm run tsc","test":"npm run test-coverage && npm run eslint","test-coverage":"npm run test-only -- --coverage","test-only":"jest","tsc":"npm run clean && npm run tsc-cjs && npm run tsc-esm","tsc-cjs":"tsc --project tsconfig.cjs.json","tsc-esm":"tsc --project tsconfig.esm.json"},"repository":{"type":"git","url":"git+https://github.com/maasencioh/jest-matcher-deep-close-to.git"},"bugs":{"url":"https://github.com/maasencioh/jest-matcher-deep-close-to/issues"},"homepage":"https://github.com/maasencioh/jest-matcher-deep-close-to#readme","jest":{"preset":"ts-jest","testEnvironment":"node"},"prettier":{"arrowParens":"always","semi":true,"singleQuote":true,"tabWidth":2,"trailingComma":"all"},"dependencies":{"jest-matcher-utils":"~25.4.0"},"devDependencies":{"@types/jest":"~25.2.1","@typescript-eslint/eslint-plugin":"~2.30.0","@typescript-eslint/parser":"~2.30.0","eslint":"~6.8.0","eslint-config-cheminfo":"~3.0.0","eslint-config-cheminfo-typescript":"~5.0.0","eslint-plugin-import":"~2.20.2","eslint-plugin-jest":"~23.8.2","eslint-plugin-prettier":"~3.1.3","jest":"~25.4.0","prettier":"~2.0.5","rimraf":"~3.0.2","ts-jest":"~25.4.0","typescript":"~3.8.3"},"gitHead":"6b21245c52f869748f4449509599d308f35db48a","_id":"jest-matcher-deep-close-to@2.0.0","_nodeVersion":"13.5.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-NotcjvQzJUITiz2LodicQvGCsVJaD0Wb623YcnPkp6sXTlOh/NWCpajzvWQvhhnAHFIvJg2hfCYPV9NPDpLP9A==","shasum":"9654773eb5f11b1483bde2501739a0ee7a2d09e2","tarball":"http://registry-npm.ywwl.com/jest-matcher-deep-close-to/download/jest-matcher-deep-close-to-2.0.0.tgz","fileCount":13,"unpackedSize":36051,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJep0LVCRA9TVsSAnZWagAAfMAP/2BpQOCZqx7fTPuQAHF8\nViGMc4t+7n9p7SrAEqePGar+i59lPDT7lbG88JxfTI0pOG8lH8Z6wi/CNo7A\npKf7CvpLaJXpCYUMXGMjRwCPN9C97def0qZrU27qDzlBjiflm21Qa1X8//oa\npuaG5xoevFUTmh07osFSJmjrstx2dU/wZ9OOnRENRwI7Km21P2rYe7oaUaZj\nuwesbNTb3olkgFWOlprbC0vWIU370lCQUpFrkEAFr/Y/lsCdtDp8+iM/5oaW\npBeC0I2AYH2oG0ulZFplUqbFxgRdF0WRKEo49mcBA+CMILeEr/4SGlWnu3IU\nfI/q4RKNNiFFRcxI6kRFSPfIT7lfqLWkUZksbjEFUqBVn2W0xltiK5mSCQ5i\n+vPn20xG04fBEZWOU3/i6yxYMjxRqTgyBbJOYulodRoABe+CvYLhzojtBeTx\nqpQlO4t6FX/IBLgmgQbxylVSAc3Eht36un/oHQcsnQA3meKyWj8oVbCmreJb\nb7weHN2OtSJPlmHFBOWgVoT+ialVMQsALScsU5yBmzlcWXPftXn+KSUV2TaP\nCy7mrPL1AQtJQ+WE1UlsGkCG//yZk1i/CG1Osokpen+yNF88Fbc5EFdH/Z+g\nrqqoUhWeppd//SNUKyRzgb+KxHYGazJU8oHvDOANu6XKW6xB6ysGa4vD15Lp\nj97g\r\n=YsIZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7bGZiy48gYTGQ8qiaZROwAcj7BuL8UaYFlHxrVBI1xAIhAJ/86+6oGpH2MSEtCru17BcMpXmUCVbdUCmwTG4xIKd/"}],"size":7681,"noattachment":false,"key":"/jest-matcher-deep-close-to/-/jest-matcher-deep-close-to-2.0.0.tgz"},"maintainers":[{"name":"maasencioh","email":"maasencioh@gmail.com"}],"_npmUser":{"name":"maasencioh","email":"maasencioh@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-matcher-deep-close-to_2.0.0_1588019925371_0.4365884573396457"},"_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":1588019925491,"_cnpm_publish_time":1588019925491,"dist-tags":{"latest":"3.0.2"}}