UNPKG

vitest-localstorage-mock

Version:

Auto mock all localstorage and sessionstorage APIs for your Vitest tests

62 lines 1.56 kB
{ "name": "vitest-localstorage-mock", "type": "module", "version": "0.1.2", "packageManager": "pnpm@8.15.4", "description": "Auto mock all localstorage and sessionstorage APIs for your Vitest tests", "author": "Mitscherlich <mitscherlich36@gmail.com>", "license": "MIT", "homepage": "https://github.com/Mitscherlich/vitest-localstorage-mock#README", "repository": { "type": "git", "url": "git+https://github.com/Mitscherlich/vitest-localstorage-mock.git" }, "bugs": { "url": "https://github.com/Mitscherlich/vitest-localstorage-mock/issues" }, "keywords": [ "vitest", "test", "mock", "localstorage", "sessionstorage", "storage", "node", "browser" ], "publishConfig": { "access": "public" }, "exports": { ".": "./dist/index.mjs" }, "main": "dist/index.mjs", "module": "dist/index.mjs", "files": [ "dist" ], "peerDependencies": { "vitest": "*" }, "devDependencies": { "@m9ch/eslint-config-all": "^0.3.2", "@vitest/ui": "^1.3.1", "bumpp": "^9.4.0", "eslint": "^8.57.0", "jsdom": "^24.0.0", "taze": "^0.13.3", "tsup": "^8.0.2", "typescript": "^5.3.3", "unbuild": "^2.0.0", "vite": "^5.1.5", "vitest": "^1.3.1" }, "scripts": { "build": "unbuild", "test:node": "vitest run --environment node", "test:jsdom": "vitest run --environment jsdom", "test": "pnpm run test:node && pnpm run test:jsdom", "up": "taze major -I", "release": "bumpp package.json && pnpm publish --access public" } }