{"name":"jest-matcher-deep-close-to","version":"3.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","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":"067139ae13e747139e1fc0a170b5a1f95a0438c2","_id":"jest-matcher-deep-close-to@3.0.0","_nodeVersion":"16.4.2","_npmVersion":"7.18.1","dist":{"integrity":"sha512-kk90/uUhn+RA79+4Mdr7SsPcMPAjawQD7m30HLP6W1RA/oZmm1qANGc697lcLJtMFE3PlF+RaECBLD2qAPgSPg==","shasum":"6e5ebab8cce8e157dd5f19983c30d9710f354206","tarball":"http://registry-npm.ywwl.com/jest-matcher-deep-close-to/download/jest-matcher-deep-close-to-3.0.0.tgz","fileCount":21,"unpackedSize":49582,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEBfvMs5rXJfVgPEAXt35cfe2Ay6ByVXmofYcYD8mTKKAiBj/VhlsCKWvQQNq38SVvBWtRC8rapS/cREI9HIrq5Vtw=="}],"size":11036,"noattachment":false,"key":"/jest-matcher-deep-close-to/-/jest-matcher-deep-close-to-3.0.0.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.0_1632840281482_0.8756526818784507"},"_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":1632840281647,"_cnpm_publish_time":1632840281647,"dist-tags":{"latest":"3.0.2"}}