{"_id":"vitest-localstorage-mock","_rev":"5-51bb88b96f350400b8563adbdc5d5134","name":"vitest-localstorage-mock","dist-tags":{"latest":"0.1.3"},"versions":{"0.0.1":{"name":"vitest-localstorage-mock","version":"0.0.1","keywords":["vitest","test","mock","localstorage","sessionstorage","storage","node","browser"],"author":{"name":"Mitscherlich","email":"mitscherlich36@gmail.com"},"license":"MIT","_id":"vitest-localstorage-mock@0.0.1","maintainers":[{"name":"mitscherlich36","email":"mitscherlich36@gmail.com"}],"homepage":"https://github.com/Mitscherlich/vitest-localstorage-mock#README","bugs":{"url":"https://github.com/Mitscherlich/vitest-localstorage-mock/issues"},"dist":{"shasum":"3af311c484c497d022207b79c2cf2e82a339dce3","tarball":"https://registry.npmjs.org/vitest-localstorage-mock/-/vitest-localstorage-mock-0.0.1.tgz","fileCount":7,"integrity":"sha512-jt8/URLM+aJWObVPWxDZwt/ZSl/JOKafYuITozDVoFHlgl99jjZ7Wdvsu8ryalFChlgsg1lOBicTQsHXJCpXuw==","signatures":[{"sig":"MEQCIQDI3PiB1/o9Q/XFMmx9ZPLYHFGZnJLDNONwo9KFzqfTpQIfXNb9pA233OGhFrRImd0fVRqiA046/PGM8aMhvSRT/Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7838,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjQvaxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp/hw//UtbRtdU0oqb+/8McYphSKDiKTWQj2S8UD8mfFnE3zlOm5D94\r\nR1HBZlY0Cdad6KD9M5ph1kWXfCblmWqaHQ4WHc/Mqig800AMzK2yAhJXeSD5\r\nJ9ceFEm6X4S1ZaPH4L/Qli7URRpJUdanH5ChWaQOQDxecr9tOn5L48Olw62m\r\neItky+3FObRcPhZuPyw+cj2e3u0D9zWEYtd3j/yqqnTQtF9zEJryMSRDBgl1\r\nzXbOqtgI3yp5HIoU5aHCqr6H/oeLOSOpHh7A19ot/2LmMBREfw8r0dS2g4Pd\r\nEcgKFWd2CJ6VMuKDlbH3X6Cc0ryATg4zIa7v3qn3pzU9OMSn8EPmxOp/8nAm\r\nRINIGNFiXUzwZlcJlH6+dpd7WdoB9FVTcFtfq+0GNJsewVzNgN4AKvrsl2Kf\r\nwr3DblbzXgBS2OeOA40icohzt6MUeODuQRDcTSByOsUzlfghiiEmX+fAXHxj\r\npbGqhHdIrvuwfmj2iQLm1dKKcfs3a9PjoNt864V7vx3uxh4Q0CKmg0/mnl+2\r\n2MF15qLKGtNKwCm9u1eB0LLrHnLrq87jUeOkkdoLWQCZe7DnXHHkvazFse1n\r\nYNcTDbfdoHknP4G5Cuvj0EQfQjEbzQpkEx68sdBbEfWiCWClCW5cC3qg37Az\r\nI2lOthzH/zt+VAsnDLNTBGoh4Zu7X3p6v8g=\r\n=YY4y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/setup.js","_from":"file:vitest-localstorage-mock-0.0.1.tgz","scripts":{"test":"pnpm run test:node && pnpm run test:jsdom","release":"bumpp package.json --commit --push --tag && pnpm publish --access public","test:node":"vitest run --environment node","test:jsdom":"vitest run --environment jsdom"},"_npmUser":{"name":"mitscherlich36","email":"mitscherlich36@gmail.com"},"_resolved":"C:\\Users\\MITSCH~1\\AppData\\Local\\Temp\\7b9bbc2eb8a60ed3a50fe4d170bcae89\\vitest-localstorage-mock-0.0.1.tgz","_integrity":"sha512-jt8/URLM+aJWObVPWxDZwt/ZSl/JOKafYuITozDVoFHlgl99jjZ7Wdvsu8ryalFChlgsg1lOBicTQsHXJCpXuw==","repository":{"url":"git+https://github.com/Mitscherlich/vitest-localstorage-mock.git","type":"git"},"_npmVersion":"8.11.0","description":"Auto mock all localstorage and sessionstorage APIs for your Vitest tests","directories":{},"_nodeVersion":"16.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^6.2.3","vite":"^3.1.6","bumpp":"^8.2.1","jsdom":"^20.0.1","eslint":"^8.24.0","vitest":"^0.23.4","@vitest/ui":"^0.24.0","typescript":"^4.8.3","@m9ch/eslint-config-all":"^0.2.4"},"peerDependencies":{"vitest":"*"},"_npmOperationalInternal":{"tmp":"tmp/vitest-localstorage-mock_0.0.1_1665332912926_0.8544437674661107","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"vitest-localstorage-mock","version":"0.1.2","keywords":["vitest","test","mock","localstorage","sessionstorage","storage","node","browser"],"author":{"name":"Mitscherlich","email":"mitscherlich36@gmail.com"},"license":"MIT","_id":"vitest-localstorage-mock@0.1.2","maintainers":[{"name":"mitscherlich36","email":"mitscherlich36@gmail.com"}],"homepage":"https://github.com/Mitscherlich/vitest-localstorage-mock#README","bugs":{"url":"https://github.com/Mitscherlich/vitest-localstorage-mock/issues"},"dist":{"shasum":"c2e4a196b76b38d50858c4173ad5a7d532ee0a04","tarball":"https://registry.npmjs.org/vitest-localstorage-mock/-/vitest-localstorage-mock-0.1.2.tgz","fileCount":4,"integrity":"sha512-1oee6iDWhhquzVogssbpwQi6a2F3L+nCKF2+qqyCs5tH0sOYRyTqnsfj2dtmEQiL4xtJkHLn42hEjHGESlsJHw==","signatures":[{"sig":"MEUCIQD5MtMFdnH6UbC5BPsKoL7r3zymFhgXjn5BOj/WbKT+hAIgY9N/kGPYiYRU5K033QY192p6Oea4bK6NKZLzftWGIjw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6118},"main":"dist/index.mjs","type":"module","_from":"file:vitest-localstorage-mock-0.1.2.tgz","module":"dist/index.mjs","exports":{".":"./dist/index.mjs"},"scripts":{"up":"taze major -I","test":"pnpm run test:node && pnpm run test:jsdom","build":"unbuild","release":"bumpp package.json && pnpm publish --access public","test:node":"vitest run --environment node","test:jsdom":"vitest run --environment jsdom"},"_npmUser":{"name":"mitscherlich36","email":"mitscherlich36@gmail.com"},"_resolved":"/private/var/folders/dm/m2_vp7sj62z5d6gtgmxhfrlh0000gn/T/745749d074cbdf9c12a1a79d0235b295/vitest-localstorage-mock-0.1.2.tgz","_integrity":"sha512-1oee6iDWhhquzVogssbpwQi6a2F3L+nCKF2+qqyCs5tH0sOYRyTqnsfj2dtmEQiL4xtJkHLn42hEjHGESlsJHw==","repository":{"url":"git+https://github.com/Mitscherlich/vitest-localstorage-mock.git","type":"git"},"_npmVersion":"10.2.4","description":"Auto mock all localstorage and sessionstorage APIs for your Vitest tests","directories":{},"_nodeVersion":"20.11.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@8.15.4","devDependencies":{"taze":"^0.13.3","tsup":"^8.0.2","vite":"^5.1.5","bumpp":"^9.4.0","jsdom":"^24.0.0","eslint":"^8.57.0","vitest":"^1.3.1","unbuild":"^2.0.0","@vitest/ui":"^1.3.1","typescript":"^5.3.3","@m9ch/eslint-config-all":"^0.3.2"},"peerDependencies":{"vitest":"*"},"_npmOperationalInternal":{"tmp":"tmp/vitest-localstorage-mock_0.1.2_1709896085756_0.13030964413500823","host":"s3://npm-registry-packages"}},"0.1.3":{"_id":"vitest-localstorage-mock@0.1.3","bugs":{"url":"https://github.com/Mitscherlich/vitest-localstorage-mock/issues"},"dist":{"shasum":"83038a818ecc9180a6c7bdfd423e376f1d62abdc","tarball":"https://registry.npmjs.org/vitest-localstorage-mock/-/vitest-localstorage-mock-0.1.3.tgz","fileCount":4,"integrity":"sha512-dQGYXIJ6nnWafvavsB7vi2Ug9z8NymyysCowVNR+wQnXpeOYhnA+G4M6PgFFhGrWP9T7qBMooSXa36PfVu+XWg==","signatures":[{"sig":"MEQCIEOjmPaolBK8BpLflcP6p3PR3W6onT8FEprCdJSUZxe4AiBPnKes6Sn2vEF+79HOv2xT8lo56/HJHTGVukcykHdTqQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEm7AlYLDQhN+tSH04Ft8NRVtCxPQp0+l2FOsN0ZirTGAiA2xFcKNTR8qDwK9bc9m7OZIhGOdpfTvSBGpVKcNWt7Tw=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vitest-localstorage-mock@0.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":6609},"main":"dist/index.mjs","name":"vitest-localstorage-mock","type":"module","author":{"name":"Mitscherlich","email":"mitscherlich36@gmail.com"},"module":"dist/index.mjs","exports":{".":"./dist/index.mjs"},"gitHead":"48d93093207984467c59e2143ef0e6fb530e7b75","license":"MIT","scripts":{"up":"taze major -I","test":"pnpm run test:node && pnpm run test:jsdom","build":"unbuild","release":"bumpp package.json","test:node":"vitest run --environment node","test:jsdom":"vitest run --environment jsdom","prepublishOnly":"pnpm run build"},"version":"0.1.3","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"5a4a1dba-5c2d-4a71-a7e5-11dc59cdfc68"}},"homepage":"https://github.com/Mitscherlich/vitest-localstorage-mock#README","keywords":["vitest","test","mock","localstorage","sessionstorage","storage","node","browser"],"repository":{"url":"git+https://github.com/Mitscherlich/vitest-localstorage-mock.git","type":"git"},"_npmVersion":"11.19.1","description":"Auto mock all localstorage and sessionstorage APIs for your Vitest tests","directories":{},"maintainers":[{"name":"mitscherlich36","email":"mitscherlich36@gmail.com"}],"_nodeVersion":"24.22.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.34.7","devDependencies":{"taze":"^19.0.0","tsup":"^8.0.2","vite":"^8.0.0","bumpp":"^11.0.0","jsdom":"^27.0.0","eslint":"^10.0.0","vitest":"^4.0.0","unbuild":"^3.0.0","@vitest/ui":"^4.0.0","typescript":"^5.3.3","@m9ch/eslint-config-all":"^0.3.2"},"peerDependencies":{"vitest":"*"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vitest-localstorage-mock_0.1.3_1792554561134_0.5490497502535729"}}},"time":{"created":"2022-10-09T16:28:32.875Z","modified":"2026-10-21T03:49:21.603Z","0.0.1":"2022-10-09T16:28:33.107Z","0.1.0":"2024-03-07T15:23:08.541Z","0.1.2":"2024-03-08T11:08:05.909Z","0.1.3":"2026-10-21T03:49:21.229Z"},"bugs":{"url":"https://github.com/Mitscherlich/vitest-localstorage-mock/issues"},"author":{"name":"Mitscherlich","email":"mitscherlich36@gmail.com"},"license":"MIT","homepage":"https://github.com/Mitscherlich/vitest-localstorage-mock#README","keywords":["vitest","test","mock","localstorage","sessionstorage","storage","node","browser"],"repository":{"url":"git+https://github.com/Mitscherlich/vitest-localstorage-mock.git","type":"git"},"description":"Auto mock all localstorage and sessionstorage APIs for your Vitest tests","maintainers":[{"name":"mitscherlich36","email":"mitscherlich36@gmail.com"}],"readme":"# vitest-localstorage-mock\n\nAuto mock `localstorage` and `sessionstorage` in your [Vitest](https://vitest.dev/) scripts for testing.\n\n[![npm version](https://badgen.net/npm/v/vitest-localstorage-mock)](https://npm.im/vitest-localstorage-mock) [![npm downloads](https://badgen.net/npm/dm/vitest-localstorage-mock)](https://npm.im/vitest-localstorage-mock) ![actions status](https://github.com/Mitscherlich/vitest-localstorage-mock/actions/workflows/ci.yml/badge.svg?branch=dev)\n\n## Install\n\nvia `pnpm`, `yarn` or `npm`:\n\n```bash\npnpm add -D vitest-localstorage-mock\n# or\nyarn add -D vitest-localstorage-mock\n# or\nnpm install -D vitest-localstorage-mock\n```\n\n## Setup\n\n### Module\n\nIn your `vite.config.(js|ts)` under the `test` [configuration section](https://vitest.dev/config/#options) create a `setupFiles` array and add `vitest-localstorage-mock` to the array. ~~Also, ensure you have enabled [`globals`](https://vitest.dev/config/#globals)~~ We don't need globals any more.\n\n```js\nimport { defineConfig } from 'vite'\n\nexport default defineConfig({\n  test: {\n    setupFiles: ['vitest-localstorage-mock'],\n  }\n})\n```\n\n### Setup file\n\nAlternatively you can create a new setup file which then requires this module or\nadd the `require` statement to an existing setup file.\n\n- `__setups__/localstorage.js`\n\n```js\nimport 'vitest-localstorage-mock'\n```\n\nAdd that file to your `setupFiles` array:\n\n```js\nimport { defineConfig } from 'vite'\n\nexport default defineConfig({\n  test: {\n    setupFiles: ['./__setups__/localstorage.js'],\n  }\n})\n```\n\n## Releasing\n\nRun `pnpm release` to bump `package.json`, commit the version change, and push a\nmatching `vX.Y.Z` tag. The `publish.yml` GitHub Actions workflow validates the tag,\nruns both test environments, builds the package, and publishes it to npm.\nOnly stable versions are published to the `latest` dist-tag.\n\nThe npm package must have a GitHub Actions trusted publisher configured with:\n\n- Organization or user: `Mitscherlich`\n- Repository: `vitest-localstorage-mock`\n- Workflow filename: `publish.yml`\n- Environment: leave empty\n- Allow direct publishing with `npm publish`\n\nNo npm token is required. If publishing fails, fix the configuration and re-run\nthe failed workflow; do not move an existing release tag.\n\n## License\n\nMIT &copy; [Mitscherlich](https://mitscherlich.me)\n","readmeFilename":"README.md"}