{"name":"jest-matcher-deep-close-to","version":"3.0.1","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":"0cbbc82310f3c75fc7c915554793f1277dfa12cf","_id":"jest-matcher-deep-close-to@3.0.1","_nodeVersion":"16.10.0","_npmVersion":"7.24.0","dist":{"integrity":"sha512-p/tD0jFRuuMPpko19HbkXt7IJ1qoFIke8uWDuYejtXzYa2FL7FEMI+FXVf7sg/ykukqU2nakzGvTGfniBkfnRw==","shasum":"f8f375e03981c6feff8192003b360ca47ec3a738","tarball":"http://registry-npm.ywwl.com/jest-matcher-deep-close-to/download/jest-matcher-deep-close-to-3.0.1.tgz","fileCount":9,"unpackedSize":13695,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCG+C6TGDv6oadIJdyjevLF/+mcdODArnjMZxr9iGGCGQIgWgz4YXGTZlebRrAO/0/T7eS0C9h/rII+hoiL8ny7/yw="}],"size":4604,"noattachment":false,"key":"/jest-matcher-deep-close-to/-/jest-matcher-deep-close-to-3.0.1.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.1_1633618327074_0.5531360665011169"},"_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":1633618327414,"_cnpm_publish_time":1633618327414,"dist-tags":{"latest":"3.0.2"}}