UNPKG

opfs-mock

Version:

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

57 lines (56 loc) 1.63 kB
{ "name": "opfs-mock", "version": "2.3.0", "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" }, "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js" } }, "main": "dist/index.js", "module": "dist/index.js", "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": "1.9.4", "@web-std/file": "3.0.3", "happy-dom": "17.4.7", "jsdom": "26.1.0", "tsdown": "0.12.3", "typescript": "5.8.3", "vitest": "3.1.4" } }