{"name":"jest-matcher-deep-close-to","version":"2.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","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":"3a4983e640323c5bcce64495d69c4cff304c62e2","_id":"jest-matcher-deep-close-to@2.0.1","_nodeVersion":"13.5.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-9uhXGfF70GftMclsqWrFuaSDU0AZvD4ouot4k/t/mlJh0ScLJuEhV0Bf63F++gElzN2xF2PVyHAXBrn6Bn7xvA==","shasum":"2f9d0da44f78a16a3904d18982e395e98e375c5a","tarball":"http://registry-npm.ywwl.com/jest-matcher-deep-close-to/download/jest-matcher-deep-close-to-2.0.1.tgz","fileCount":13,"unpackedSize":37229,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetWQZCRA9TVsSAnZWagAApDUP+wa97RFfxDGCXhwF2lgq\nyo4K7uf6F+hQ4FyR6XExUypFqofimq6Gkoz7LqlsDt6ImhYzeMfXG/lw9vgS\nsoaxRGRuaJuD1gZu2FehGxyGit2XoxhO0Iif9x+R0tfAZ65RP+HaEiLGMixK\nFO8PSZdIvfbEZb1UvxiTBQ3XEfv3KrJU/Ri8E9KYKQxJ2DFfbw6OF/J4esMm\nMLodWGCQ4u61Q68gzXOUAEXrKT+xdrTq2DKlDhcCKSHbOZowflUrOFCchz9u\nu3JUqylFEes5jFR40YFlx0Ry5PgORnQPnZIb1VwBx5r42ssm/cQv3Zig/BBj\ntbcs8G3wCIbn5sFppc3VEOEwY67eP7RfJmK90plZOcNlJg549naDkAAuVsWE\nQ6LQremAfD1k7UbCBmJs478jNLNqHjVa7BG/m73P8MojQMPFeDvas7mXN12g\n6/Wm4qfdtp2UCQHf9EhjifhEvOdYPZw52r2zNhDEWSQM77hg6/V3oMW1Im/1\nlVpVVALpKQuNzAKKAlU9Ol+R5teHq62LiPNHUIV/BcNYO3aiee7OB2r41gER\nYOFIzHW6n67h6AqVuVY+x44ukMMsTtekXnXYdz8qyNAUWs/u4mumsuaHqk5E\nC4xGBw4HfJLEQ1RXXq3+pArFSefrxkDHbI8sfw81j7Y2ka/MvAcXWVSw4/Vb\nqKPw\r\n=AsMJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDq93FAzQTZArwTv/D4FXrk9BLqWQdPqZGP1jg3nXX7qwIhAJTJrfSRXeIwpcMoIuk/kWlYN+xPJvemve71pZq+HcrM"}],"size":7829,"noattachment":false,"key":"/jest-matcher-deep-close-to/-/jest-matcher-deep-close-to-2.0.1.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.1_1588945944652_0.4268258567610277"},"_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":1588945944743,"_cnpm_publish_time":1588945944743,"dist-tags":{"latest":"3.0.2"}}