{"_id":"@demissew/google-maps-vitest-mocks","_rev":"3-307a39a7599361832d2ffde2f8014dd2","name":"@demissew/google-maps-vitest-mocks","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.1":{"name":"@demissew/google-maps-vitest-mocks","version":"1.0.1","keywords":["google","maps","vitest"],"homepage":"https://github.com/demissew/google-maps-vitest-mocks","bugs":{"url":"https://github.com/demissew/google-maps-vitest-mocks/issues"},"repository":{"type":"git","url":"git+https://github.com/demissew/google-maps-vitest-mocks.git"},"license":"Apache-2.0","author":{"name":"Justin Poehnelt"},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"rm -rf dist","test":"vitest","semantic-release":"semantic-release --branches main"},"devDependencies":{"@types/google.maps":"^3.49.1","typescript":"^4.7.4","vite":"^3.0.5","vitest":"^0.21.1","semantic-release":"^19.0.3"},"publishConfig":{"access":"public"},"gitHead":"bf30f279e9e05faeb923f9d08ac45115d6916c08","description":"## Description","_id":"@demissew/google-maps-vitest-mocks@1.0.1","_nodeVersion":"16.16.0","_npmVersion":"8.17.0","dist":{"integrity":"sha512-9sG6K1S0ZpGcjO0TdzxeVe/JuNrlV4bPtYUgrrFF+Rgm7lfpoLFirxVNs7Ds+HpZ/ZlR08piwqZeE4bT1b2rzg==","shasum":"4f43292b162cbd0ecd49a70cf4f2a079c548eb6f","tarball":"https://registry.npmjs.org/@demissew/google-maps-vitest-mocks/-/google-maps-vitest-mocks-1.0.1.tgz","fileCount":3,"unpackedSize":13691,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwdx+0YfuI7U1iFNs0enYBo6ZgCPi+d1ahn8poj15cIAIhAONxQEkyZtzisOkyDKL845vn4FNNqRTffCE3mbTfyj8l"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9HscACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr2OhAAgV2A1wXh+w4pZFoIW64OjVR3JZBpq0qAy1oLBgceoXV1ny8u\r\neQwaxSNXgkSfsPEUuCuQ4CSGGWkfu43i+xVCW2Y8ginZl29yo0MWvjZ4beRE\r\nKra5M3qQb6c/xHHwxNVeO4ulc6lfi0olECanpsejH2dnh6Sn0lXwRBsNRvgT\r\nRHxYcJ0GkxAhv9vuAPfXbCB2IvAUWvNW9Tp1YtFOjN8iPj4edqOKHbIMjTZp\r\nCRPj476dM+b6eJfRHGvLMUSSfoJBVxcEeUg+Y24aazYNs9HerYitQOWzpu+P\r\nSJfJICou1SUgZ7xp1NB2AuvUSa94fifbFXu/1iU9M4ZbXBI6odpV7FK0WRYA\r\naFvba/oYGbVsplnkFNgmgVCzidJPBHJX6enR5IEndZ74KaH0BeRJ4Vz2dpvv\r\nNuLubLCw/FX/x/zXQRg4FsTdXtN0t4wGdiLnq6u2H70w0WmKV5ZG8hu7qWng\r\nWKMqcXYnozGsb+CVSS22gxF+/XPhS1V+33n0U3pVo5TzmUL8rbpE1OQwklFF\r\ndOTwtVALyJBSuRwDc1pQra6BZtzuCuTHoXNaKV4FVgcmD57+Fsj/ab6ZG3D4\r\nUeifng0nw81+eKtUjprx0ov2ADz3pVPtzDGSeiItTtHqWKc1fRuZrXFbp+dd\r\nJv9NKxNCgvYI7DwvqXe3yMof57ugQ31X7gA=\r\n=S9Zb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"demissew","email":"dhex30@gmail.com"},"directories":{},"maintainers":[{"name":"demissew","email":"dhex30@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/google-maps-vitest-mocks_1.0.1_1660189468539_0.8707992443192036"},"_hasShrinkwrap":false},"1.0.2":{"name":"@demissew/google-maps-vitest-mocks","version":"1.0.2","keywords":["google","maps","vitest"],"homepage":"https://github.com/demissew/google-maps-vitest-mocks","bugs":{"url":"https://github.com/demissew/google-maps-vitest-mocks/issues"},"repository":{"type":"git","url":"git+https://github.com/demissew/google-maps-vitest-mocks.git"},"license":"Apache-2.0","author":{"name":"Justin Poehnelt"},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"vitest","semantic-release":"semantic-release --branches main"},"devDependencies":{"@types/google.maps":"^3.49.1","typescript":"^4.7.4","vite":"^3.0.5","vitest":"^0.21.1","semantic-release":"^19.0.3"},"publishConfig":{"access":"public"},"gitHead":"0e9e60f5aa78843534f1cae9fac077f3ac528afd","description":"## Description","_id":"@demissew/google-maps-vitest-mocks@1.0.2","_nodeVersion":"16.16.0","_npmVersion":"8.17.0","dist":{"integrity":"sha512-8F0UGgj78jw8RmLmffN4SGL63rUIehm1Xm1bw4ByZFcfY0vlL8v4Hi/EaT3dACZ+317b1U+SXTiJZ6+OuzIEdA==","shasum":"ba9f7a3715e33fd050b0e1eacde729eb7756c092","tarball":"https://registry.npmjs.org/@demissew/google-maps-vitest-mocks/-/google-maps-vitest-mocks-1.0.2.tgz","fileCount":3,"unpackedSize":13685,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWxGRQlYvXfyr5XdXYrU4dsMfjWs8gfRLhYbF6ztgToAIhAP15Hh9Br5+oJO9hrWe/BszBhTmoWf+M01Vq3UhvoFiB"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9Qm9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrUGA/+OttfbvcmIakLaXNe+/IXZMdl0HHbNcmZfdQG31NXx8guxVHa\r\nbzRq3t0Lh7YJJFc+RVghblDRjb+RuU745mi+uRg8r8ASbcVoWJZbkUYEc+Ub\r\njTPfEWcUqpZ5FcOIhOmfgooFtdV+E/VZqHYYqvYLA+jdPQ6x/AKvCxu0tyYM\r\njPaeRK7SLEu9JJDzvVva70dgIk57ZNU9GOi8kDI8zuz2sK9btJQZhK7fNPuK\r\nTLRj34zMtCgzltYbCw0s374rhEWpXy16rkovYP7ltlp7jvvA9D/fQ9dlf804\r\nY7K4/8wTJ7XX5QD+MQ3axluAvdyC0YCnlF3Rw0te9LDcGmfC7+DcgaPxcrv4\r\nSyxqylpZ14j6VGb33pAOrYTIFMrfBy8EwQGhBD/TW9ETcFU93BCxJAR8NUZL\r\n7DkgUScgrFs7AuV8GJvh1RwFhaHzc9mAe2pmXDWClq5op/0kF/GTVEE92Yjk\r\nyNC/QD2pcbfJ5Fnz5VlUPuqrluH6J//eEQCI9ydGJFA+n+Xgx4sayRedgtg8\r\n7/gPMDYkeTMWjBn2wDo61GtTO42fm398tiB9jY/zmHff6vLgr0N6+CKo1zWh\r\nNhQbp2G9Xz1I9fnTIQhNIhh/QiEV/rGqiQt3mfiPVBUoqOxtTq2AnE8jK3dM\r\nXrZtc9+Sq7Z5r/edMEo8jeBTCewm5fKQRro=\r\n=z5vA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"demissew","email":"dhex30@gmail.com"},"directories":{},"maintainers":[{"name":"demissew","email":"dhex30@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/google-maps-vitest-mocks_1.0.2_1660225981660_0.1077827128625386"},"_hasShrinkwrap":false},"1.0.3":{"name":"@demissew/google-maps-vitest-mocks","version":"1.0.3","keywords":["google","maps","vitest"],"homepage":"https://github.com/demissew/google-maps-vitest-mocks","bugs":{"url":"https://github.com/demissew/google-maps-vitest-mocks/issues"},"repository":{"type":"git","url":"git+https://github.com/demissew/google-maps-vitest-mocks.git"},"license":"Apache-2.0","author":{"name":"Justin Poehnelt"},"types":"dist/index.d.ts","type":"module","main":"./dist/google-maps-vitest-mocks.umd.cjs","module":"./dist/google-maps-vitest-mocks.js","exports":{".":{"import":"./dist/google-maps-vitest-mocks.js","require":"./dist/google-maps-vitest-mocks.umd.cjs"}},"scripts":{"build":"vite build","test":"vitest","semantic-release":"semantic-release --branches main"},"devDependencies":{"@types/google.maps":"^3.49.1","typescript":"^4.7.4","vite":"^3.0.5","vitest":"^0.21.1","semantic-release":"^19.0.3"},"publishConfig":{"access":"public"},"gitHead":"fd9a617dd980b2b9a8b23ecebd8689fed80dc382","description":"## Description","_id":"@demissew/google-maps-vitest-mocks@1.0.3","_nodeVersion":"16.16.0","_npmVersion":"8.17.0","dist":{"integrity":"sha512-5PK9/982cK4YoTvg0eMU9qF9k4fW5s2Sp2q4bQVAWbhkZdt4Rx+cW5eNcivRQ9rd4iKr7ijEg4JTnqCKrTgMMg==","shasum":"896b101ed88bb98eade0f91f6257f11d0e8d6d3f","tarball":"https://registry.npmjs.org/@demissew/google-maps-vitest-mocks/-/google-maps-vitest-mocks-1.0.3.tgz","fileCount":5,"unpackedSize":51577,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEMWKe3U8h5eBBCDo8KcBqpqK/397Wu3Xzwt+hm0cI/6AiEAjpJSF9OUrHIaNeEeaMpCx+QXX1hVG4ODoibMdcyMleo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9Q54ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoUbBAAkxaOTvXUNoy89pMNrTW0UhpFeRwdPpKNenG6AryFXUZSfYys\r\nKhFfmteoGdAqFzuxl/aVEOJwted8FXGiuIgXgUCZalFL+udfT3COMKDEP5Wi\r\n8KIx/JclQGa0popBf0aaMhYjyIWLV3bTVGnyCLAYmJH/R61VTm019ydKcJHi\r\n9fv9kJGstqNsz6u8SEfA7Uu9z0N2fs3NtrpDnKP3bUT3D2zIFuAGjCdJHYul\r\nM1609+l+2WGMN735JHroMHeh22o25NhFbp5lUncUntaDFGkOtkrLUtiVKvW7\r\nMntAA8sqzIGQHcem9MLG1A5SSoQCgX7ysaA0I0yXBQQsjWbfnaG3E1r/NLva\r\nf0JCMJ772JpUo+hnrB1rN7IOL+bEyfJfNLbECPbifjRinQQhm/xZ/LTKCcUb\r\nunAwrzbGlGMQ8f9jb0AvM/u3TZq8lZegXd6J0BQy4p6IOM8qzzOq/xW/c9B5\r\nKtPQYGu9GNikluRETVkzfX78AI8AHPWZ4yG4nkfW2RzQK7tb0bYXqYXLb/Cm\r\nkBk3ZjDeEtI1cXrBRj4l+xV9W299tPjGdR0wfOenP4eos3DXUbKn2u5j0KMQ\r\nJL97cAXZhieegujV1do3SUY/vdKdsoKSiHiKj7VKOYU6ArYBNm1m4AgpEaGo\r\nsI/4MnTpyhGcL+le1eZ97fB8gF3xtmNp1fY=\r\n=0inZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"demissew","email":"dhex30@gmail.com"},"directories":{},"maintainers":[{"name":"demissew","email":"dhex30@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/google-maps-vitest-mocks_1.0.3_1660227192394_0.36924742142789047"},"_hasShrinkwrap":false},"1.0.0":{"name":"@demissew/google-maps-vitest-mocks","version":"1.0.0","keywords":["google","maps","vitest"],"homepage":"https://github.com/demissew/google-maps-vitest-mocks","bugs":{"url":"https://github.com/demissew/google-maps-vitest-mocks/issues"},"repository":{"type":"git","url":"git+https://github.com/demissew/google-maps-vitest-mocks.git"},"license":"Apache-2.0","author":{"name":"Justin Poehnelt"},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"docs":"typedoc src/index.ts","format":"eslint . --fix","lint":"eslint .","prepare":"rm -rf dist && rollup -c","test":"vitest --config ./vitest.config.ts","coverage":"vitest run --coverage","semantic-release":"semantic-release --branches main"},"devDependencies":{"@rollup/plugin-typescript":"^8.3.4","@types/google.maps":"^3.49.1","@typescript-eslint/eslint-plugin":">=4.33.0","@typescript-eslint/parser":">=4.33.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","prettier":"^2.7.1","rollup":"^2.77.2","semantic-release":"^19.0.3","typedoc":"^0.23.10","typescript":"^4.7.4","vitest":"^0.21.1"},"publishConfig":{"access":"public"},"release":{"branches":["main","next"]},"gitHead":"171dd8e1d8f2f4b0bb42300b94f9b873fc907683","description":"[![npm](https://img.shields.io/npm/v/@demissew/google-maps-vitest-mocks)](https://www.npmjs.com/package/@demissew/google-maps-vitest-mocks) ![Build](https://github.com/demissew/google-maps-vitest-mocks/workflows/Test/badge.svg) ![Release](https://github.c","_id":"@demissew/google-maps-vitest-mocks@1.0.0","_nodeVersion":"14.20.0","_npmVersion":"8.17.0","dist":{"integrity":"sha512-gj3Wlo5o4knxT8kqosxdjLMCzH9AEgdHDi6wKMmjoPzT4yUf4QEACv+Co2YDbekvNJtmBbXV0WmIpz627CPZvg==","shasum":"4c182b52ae23c7246ab8aec527fb2c41475221e1","tarball":"https://registry.npmjs.org/@demissew/google-maps-vitest-mocks/-/google-maps-vitest-mocks-1.0.0.tgz","fileCount":25,"unpackedSize":80881,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHYCtNnqcd2S2daVQax68EkGIQ35Pq1oi6WCNxJ9JRvhAiAM1+z+swd5HuIGcZwm37eypspAcTSreCg/3vOtMyVG7A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9W5YACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpVzw//Vj80RmMr4ao9EWFjZEoA330kwwuu9MzAXM5p/zPV+bkOoZLj\r\nv7EZPWtdGPwcodeQXbEFiqCJbsxnrmcKMbZNmpNSv8zzosllRlADLNHKIhgE\r\nNIfsom1Sajm1GKmxB6acbWX+qBAwpqbVTW2b3irJNX9OUc3JEaQYl+iJBEnZ\r\nCsMArY0qvqO6F1i+WuHAYO1x3nYmrJ+CjtlWQtC76RVkgdZm8YmcA/dK+Zsq\r\n7/g8Bw/i95Wi1xD8ZHrZBKXjgt4JxWinBUaf2/P8EkVef+9ib7RQ6P09otXc\r\nTAoTw3NcEF4oQeDggON6Dwd3Se2iHodmG4a9VplNlAxng1NO64zsrvdUOQCa\r\nPWmiAzpFhZ9b2FoTk28M74vPnTzCaoaEkIUrKsxeUmDpBh9SngbDD885XFbX\r\nvpTwsUewVkkPZDIPuGa2LLDrg0ZMr3cM3nyA/6OPv0gnFmBcXf4puPPvaZaz\r\nzzer+Zr/yfUxl/BM4Ro8jmSDqjhkDi50efLEM5V9HPmhKU9H0yitp0GN3gAc\r\nRN/xsSqK8S68ODd1IWm60+47jZPtgNO3//31I7AJpgclHBuBHfWyeqALSlrq\r\nXynkyKoIWhW1MlTR3aVeOlEo8BpkLdVvb9KBPP6wTIW/cd0YJEozTqC78ss4\r\nFOYbYvfSKOKJWuqnDgvIZgcFbl+qr0NnwSY=\r\n=uaf1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"demissew","email":"dhex30@gmail.com"},"directories":{},"maintainers":[{"name":"demissew","email":"dhex30@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/google-maps-vitest-mocks_1.0.0_1660251736396_0.7597725320467978"},"_hasShrinkwrap":false}},"time":{"created":"2022-08-11T03:44:28.462Z","1.0.1":"2022-08-11T03:44:28.683Z","modified":"2022-08-11T21:02:16.660Z","1.0.2":"2022-08-11T13:53:01.927Z","1.0.3":"2022-08-11T14:13:12.597Z","1.0.0":"2022-08-11T21:02:16.581Z"},"maintainers":[{"name":"demissew","email":"dhex30@gmail.com"}],"description":"[![npm](https://img.shields.io/npm/v/@demissew/google-maps-vitest-mocks)](https://www.npmjs.com/package/@demissew/google-maps-vitest-mocks) ![Build](https://github.com/demissew/google-maps-vitest-mocks/workflows/Test/badge.svg) ![Release](https://github.c","homepage":"https://github.com/demissew/google-maps-vitest-mocks","keywords":["google","maps","vitest"],"repository":{"type":"git","url":"git+https://github.com/demissew/google-maps-vitest-mocks.git"},"author":{"name":"Justin Poehnelt"},"bugs":{"url":"https://github.com/demissew/google-maps-vitest-mocks/issues"},"license":"Apache-2.0","readme":"# Vitest Mocks for Google Maps\n\n[![npm](https://img.shields.io/npm/v/@demissew/google-maps-vitest-mocks)](https://www.npmjs.com/package/@demissew/google-maps-vitest-mocks)\n![Build](https://github.com/demissew/google-maps-vitest-mocks/workflows/Test/badge.svg)\n![Release](https://github.com/demissew/google-maps-vitest-mocks/workflows/Release/badge.svg)\n![GitHub contributors](https://img.shields.io/github/contributors/demissew/google-maps-vitest-mocks?color=green)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\n\n## Description\n\nVitest mocks for Google Maps in TypeScript.\n\n**Note:** If you find a missing mock, please open an [issue][issues].\n\n## NPM\n\nAvailable via NPM as the package `@demissew/google-maps-vitest-mocks`\n\n## Inspecting mocks\n\nYou can inspect what happens with the created mock instances (e.g. `Map` or `Marker`) via the `mockInstances` object.\n\n```ts\nimport { initialize, Map, Marker, mockInstances } from \"@demissew/google-maps-vitest-mocks\";\n\nbeforeEach(() => {\n  initialize();\n});\n\ntest(\"my test\", () => {\n  const map = new google.maps.Map(null);\n  const markerOne = new google.maps.Marker();\n  const markerTwo = new google.maps.Marker();\n\n  map.setHeading(8);\n  markerOne.setMap(map);\n  markerTwo.setLabel(\"My marker\");\n\n  const mapMocks = mockInstances.get(Map);\n  const markerMocks = mockInstances.get(Marker);\n\n  expect(mapMocks).toHaveLength(1);\n  expect(markerMocks).toHaveLength(2);\n  expect(mapMocks[0].setHeading).toHaveBeenCalledWith(8);\n  expect(markerMocks[0].setMap).toHaveBeenCalledTimes(1);\n  expect(markerMocks[1].setLabel).toHaveBeenCalledWith(\"My marker\");\n});\n```\n\n## Cleaning up mocks\n\nWhenever `initialize()` is called, the captured mocks are automatically cleaned. Using any of Vitest's methods, you can clean the mock instances at any time:\n\n```ts\nimport { initialize, Map, Marker, mockInstances } from \"@demissew/google-maps-vitest-mocks\";\n\nbeforeAll(() => {\n  initialize();\n});\n\n// Clear all mocks\nbeforeEach(() => {\n  mockInstances.clearAll();\n});\n\n// Clear specific mocks\nbeforeEach(() => {\n  mockInstances.clear(Map, Marker);\n});\n```\n\n## Support\n\nThis library is community supported. We're comfortable enough with the stability and features of\nthe library that we want you to build real production applications on it.\n\nIf you find a bug, or have a feature suggestion, please [log an issue][issues]. If you'd like to\ncontribute, please read [How to Contribute][contrib].\n\n[issues]: https://github.com/demissew/google-maps-vitest-mocks/issues\n[contrib]: CONTRIBUTING.md\n","readmeFilename":"README.md"}