{"name":"jest-matcher-deep-close-to","version":"3.0.2","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","test":"npm run test-coverage && npm run eslint","test-coverage":"npm run test-only -- --coverage","test-only":"jest","prepublishOnly":"npm run tsc && npm run copy-dts","copy-dts":"copyfiles -u 1 \"src/**/*.d.ts\" lib","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":"~27.2.2"},"devDependencies":{"@types/jest":"~27.0.2","@typescript-eslint/eslint-plugin":"~4.32.0","@typescript-eslint/parser":"~4.32.0","copyfiles":"^2.4.1","eslint":"~7.32.0","eslint-config-cheminfo":"~5.5.0","eslint-config-cheminfo-typescript":"~8.0.9","eslint-plugin-import":"~2.24.2","eslint-plugin-jest":"~24.4.2","eslint-plugin-prettier":"~4.0.0","jest":"~27.2.2","prettier":"~2.4.1","rimraf":"~3.0.2","ts-jest":"~27.0.5","typescript":"~4.4.3"},"gitHead":"15333390dbaa3f4be3b32080d0ba58b8d96e99ab","_id":"jest-matcher-deep-close-to@3.0.2","_nodeVersion":"16.10.0","_npmVersion":"7.24.0","dist":{"integrity":"sha512-9CDF2DD6FkYUWhkNynojHfoqm9KJ6Uu/UugZn/YU1bTbcJEcDuXA7DZ942X3yJdm0IAEKcQ4AOkGL3n8XMSpiQ==","shasum":"b2e68d89a179861b455205a5f16ba0abac6ef27d","tarball":"http://registry-npm.ywwl.com/jest-matcher-deep-close-to/download/jest-matcher-deep-close-to-3.0.2.tgz","fileCount":21,"unpackedSize":49445,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2wZJCRA9TVsSAnZWagAAFN8P/RikAe1qjb9tyS+8r4Ww\n3LyGTZ5lBpg/NCV1WpBKjDgY9wM3v4cRWz77Y5+EvYOiFTj+DbMHC4KEoSCy\nsg6yoNHWTiUaELWR0kp8o72RMI2kz10ZW1GEdMrGAa9kYOfDooPOgtqyTwmP\nwxYcwG+SrheSkqrnkExE+1eu+80/eArFEz/lZ6Gjx2iZtgc9n/OgNzMdOfl5\nL88olJP0Kb0Dd/4Uo+d9kplMu3by9I0y1a9qn3mZUhg+ygkrxV+5SdEavVj5\nIC52KJvtO0sNkNFjqoP3fHEQ/pd9TZCdp+wnd9gUBnb11ltz2GDSnXrWt89I\ntmx7Ffezv6ZXwbvcs4mYi421JIVnl4vr5Q0pFQtx2mhG6p2a80mxsXaOWX/Z\nmoRKPHcIYgHcoY7OD6GgcUY+TN1Y2uWznuHgKw6V+s8647whe1iCx7cWgUOr\nUMF8gK6pqCXPQlPlDpmS58bjc99uF+e35NqHUyyYn3zSYfksLCxon7Keo7Ct\nimtKUXaZEZ8O0/GH5gpgUOUx3+ccPRbPP5nc6p0nptbKYVAaSe0eFtTdEs1o\n8bB+TIUi18uF2rFIn7BRqyc2wLCVIKOJgwPkzHZKAZm8tkGn4mMBt2EXiRCB\n1wYDHtu5ykP/75HRia5qH+PCJfBaouziD3Q5BZ+jcyiJ2KI/6Y2UF5ocK8pO\nkf/i\r\n=EwPp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjHaYPFQG8QWewLf/D+A7PbmQ62tIv3nRKZbbRwVb91wIhAPjd+/y2v/Srwf6B7OsFlWL6d5eYqleOOw1uxi6k0Mpv"}],"size":11238,"noattachment":false,"key":"/jest-matcher-deep-close-to/-/jest-matcher-deep-close-to-3.0.2.tgz"},"_npmUser":{"name":"maasencioh","email":"maasencioh@gmail.com"},"directories":{},"maintainers":[{"name":"maasencioh","email":"maasencioh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-matcher-deep-close-to_3.0.2_1633671444861_0.7155884630557032"},"_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":1633671445014,"_cnpm_publish_time":1633671445014,"dist-tags":{"latest":"3.0.2"}}