UNPKG

opfs-mock

Version:

Mock all origin private file system APIs for your Jest or Vitest tests

73 lines (72 loc) 1.83 kB
{ "name": "opfs-mock", "version": "2.5.1", "type": "module", "description": "Mock all origin private file system APIs for your Jest or Vitest tests", "author": "Jure Rotar <hello@jurerotar.com>", "license": "MIT", "homepage": "https://github.com/jurerotar/opfs-mock#readme", "repository": { "type": "git", "url": "git+https://github.com/jurerotar/opfs-mock.git" }, "bugs": { "url": "https://github.com/jurerotar/opfs-mock/issues" }, "keywords": [ "vitest", "jest", "test", "mock", "opfs", "storage", "node", "browser" ], "publishConfig": { "access": "public" }, "module": "./dist/index.mjs", "types": "./dist/index.d.mts", "exports": { "module-sync": { "types": "./dist/index.d.mts", "default": "./dist/index.mjs" }, "import": { "types": "./dist/index.d.mts", "default": "./dist/index.mjs" } }, "files": [ "dist" ], "engines": { "node": ">=20.0.0" }, "scripts": { "dev": "tsdown --watch", "build": "tsdown", "lint:check": "npx @biomejs/biome lint", "lint": "npx @biomejs/biome lint --fix", "format:check": "npx @biomejs/biome format", "format": "npx @biomejs/biome format --write", "type-check": "tsc --noEmit", "test": "npm run test:node && npm run test:happy-dom", "test:node": "vitest --environment=node", "test:jsdom": "vitest --environment=jsdom", "test:happy-dom": "vitest --environment=happy-dom", "prepublishOnly": "npm run build", "release": "npm publish --access public" }, "devDependencies": { "@biomejs/biome": "2.3.4", "@vitest/coverage-v8": "4.0.7", "@web-std/file": "3.0.3", "happy-dom": "20.0.10", "jsdom": "27.1.0", "tsdown": "0.16.0", "typescript": "5.9.3", "vitest": "4.0.7" } }