{"_id":"opfs-mock","_rev":"17-9949967364e3a763584ff30c19ccde5f","name":"opfs-mock","dist-tags":{"latest":"2.8.0"},"versions":{"1.0.0":{"name":"opfs-mock","version":"1.0.0","keywords":["vitest","jest","test","mock","opfs","storage","node","browser"],"author":{"name":"jurerotar","email":"hello@jurerotar.com"},"license":"MIT","_id":"opfs-mock@1.0.0","maintainers":[{"name":"jurerotar","email":"hello@jurerotar.com"}],"homepage":"https://github.com/jurerotar/opfs-mock#README","bugs":{"url":"https://github.com/jurerotar/opfs-mock/issues"},"dist":{"shasum":"47d8b2e2d45a69da4fe7a98506ff6a6579f7f29f","tarball":"https://registry.npmjs.org/opfs-mock/-/opfs-mock-1.0.0.tgz","fileCount":6,"integrity":"sha512-ia2olePSbx4ynCJfQCW52JzphairLGVSa+VJ+ySIhSMiGAjWhyNMfD49dHDWEWHUsUzitrzEklhs5pYMO84raQ==","signatures":[{"sig":"MEYCIQCHNQ5DfbfRjkIdbwFWa2fBxTDsqWP05+sBiSZ3CBbU3gIhALLk6BcmYCkkMhyYbm1Csm41HG4+mfsHSEGJvzEZsUMZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9019},"type":"module","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"1ad6fba3191e22d02cd3d56d189f8d526fe92ddc","scripts":{"dev":"vite","lint":"npx @biomejs/biome lint --fix","test":"vitest","build":"vite build","format":"npx @biomejs/biome format --write","release":"npm publish --access public","lint:check":"npx @biomejs/biome lint","type-check":"tsc --noEmit","build:types":"tsc --emitDeclarationOnly","format:check":"npx @biomejs/biome format","prepublishOnly":"npm run build && npm run build:types"},"_npmUser":{"name":"jurerotar","email":"hello@jurerotar.com"},"deprecated":"Versions 1.0.0 - 1.0.2 contain incorrect implementation of WritableStream's write and close methods. Please update to version 2.0.0.","repository":{"url":"git+https://github.com/jurerotar/opfs-mock.git","type":"git"},"_npmVersion":"10.8.3","description":"Mock all origin private file system APIs for your Jest or Vitest tests","directories":{},"_nodeVersion":"21.7.3","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"5.4.8","vitest":"2.1.2","typescript":"5.6.2","@biomejs/biome":"1.9.3"},"_npmOperationalInternal":{"tmp":"tmp/opfs-mock_1.0.0_1728059893022_0.6909562109223417","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"opfs-mock","version":"1.0.1","keywords":["vitest","jest","test","mock","opfs","storage","node","browser"],"author":{"name":"Jure Rotar","email":"hello@jurerotar.com"},"license":"MIT","_id":"opfs-mock@1.0.1","maintainers":[{"name":"jurerotar","email":"hello@jurerotar.com"}],"homepage":"https://github.com/jurerotar/opfs-mock#README","bugs":{"url":"https://github.com/jurerotar/opfs-mock/issues"},"dist":{"shasum":"fd8255a7c74fb2727d14c6a56c9f04a97b258d4b","tarball":"https://registry.npmjs.org/opfs-mock/-/opfs-mock-1.0.1.tgz","fileCount":6,"integrity":"sha512-Qwhnb8WVl5OQbM8abi0T1T+82Hc5LeliuZpmFb6e1WAEX0bwb4h6I0V1+o4Bv0tkYEJeisY3uiiRbS9WZt28yg==","signatures":[{"sig":"MEUCIQCoHXw5+2kRnVqy/4adMZR2o3W7//Iu2x+4GsstpcedGAIgQvGAdwUshn2kdKHAnp2Sf0pugM1eTVlwL3Hed2HI72Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10223},"type":"module","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"39074d3c9fb397a2cb79b1814449aa0ffd8cbdbd","scripts":{"dev":"vite","lint":"npx @biomejs/biome lint --fix","test":"vitest","build":"vite build","format":"npx @biomejs/biome format --write","release":"npm publish --access public","lint:check":"npx @biomejs/biome lint","type-check":"tsc --noEmit","build:types":"tsc --emitDeclarationOnly","format:check":"npx @biomejs/biome format","prepublishOnly":"npm run build && npm run build:types"},"_npmUser":{"name":"jurerotar","email":"hello@jurerotar.com"},"deprecated":"Versions 1.0.0 - 1.0.2 contain incorrect implementation of WritableStream's write and close methods. Please update to version 2.0.0.","repository":{"url":"git+https://github.com/jurerotar/opfs-mock.git","type":"git"},"_npmVersion":"11.0.0","description":"Mock all origin private file system APIs for your Jest or Vitest tests","directories":{},"_nodeVersion":"22.12.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"6.0.7","vitest":"2.1.8","typescript":"5.7.3","@biomejs/biome":"1.9.4"},"_npmOperationalInternal":{"tmp":"tmp/opfs-mock_1.0.1_1736681039553_0.6632119662263471","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"opfs-mock","version":"1.0.2","keywords":["vitest","jest","test","mock","opfs","storage","node","browser"],"author":{"name":"Jure Rotar","email":"hello@jurerotar.com"},"license":"MIT","_id":"opfs-mock@1.0.2","maintainers":[{"name":"jurerotar","email":"hello@jurerotar.com"}],"homepage":"https://github.com/jurerotar/opfs-mock#README","bugs":{"url":"https://github.com/jurerotar/opfs-mock/issues"},"dist":{"shasum":"9ea1d2c17fcb1a249393a268b2dc9946355327f4","tarball":"https://registry.npmjs.org/opfs-mock/-/opfs-mock-1.0.2.tgz","fileCount":5,"integrity":"sha512-Pnj/pzpdoHuwEwRTtHoyxep6KmFHzI69cqGWdKWcZfjhTiikIEerMTNIDipHw2So4K/xgxoDwtaeoyeEDVaLpA==","signatures":[{"sig":"MEQCIHV2BeygPSFaZRyYmDKmu/DWc69bwt901iVVQd73AXaqAiA9paKclZASNZjeaE27mhF16ltAJZhgZdB0KiRQ9OpeGg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11985},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"572fbc8fc3a9b5c289bcb457303291b2d9e34aca","scripts":{"dev":"tsup --watch","lint":"npx @biomejs/biome lint --fix","test":"vitest","build":"tsup","format":"npx @biomejs/biome format --write","release":"npm publish --access public","lint:check":"npx @biomejs/biome lint","type-check":"tsc --noEmit","format:check":"npx @biomejs/biome format","prepublishOnly":"npm run build"},"_npmUser":{"name":"jurerotar","email":"hello@jurerotar.com"},"deprecated":"Versions 1.0.0 - 1.0.2 contain incorrect implementation of WritableStream's write and close methods. Please update to version 2.0.0.","repository":{"url":"git+https://github.com/jurerotar/opfs-mock.git","type":"git"},"_npmVersion":"11.0.0","description":"Mock all origin private file system APIs for your Jest or Vitest tests","directories":{},"_nodeVersion":"22.12.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"8.3.5","vitest":"2.1.8","typescript":"5.7.3","@biomejs/biome":"1.9.4"},"_npmOperationalInternal":{"tmp":"tmp/opfs-mock_1.0.2_1737025668249_0.8249962089388991","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"opfs-mock","version":"2.0.0","keywords":["vitest","jest","test","mock","opfs","storage","node","browser"],"author":{"name":"Jure Rotar","email":"hello@jurerotar.com"},"license":"MIT","_id":"opfs-mock@2.0.0","maintainers":[{"name":"jurerotar","email":"hello@jurerotar.com"}],"homepage":"https://github.com/jurerotar/opfs-mock#README","bugs":{"url":"https://github.com/jurerotar/opfs-mock/issues"},"dist":{"shasum":"280d874b69580465c2fc3b6cf368ae8a495542fe","tarball":"https://registry.npmjs.org/opfs-mock/-/opfs-mock-2.0.0.tgz","fileCount":5,"integrity":"sha512-D0xoEh841BuEq4l97IFXYK7MQYfm0rZsAEd3Am5sQkIXuOIG1Uet/kNdkEtQ15IvYLDrPIinpVu0bbDHnzIA5A==","signatures":[{"sig":"MEQCICvClLmzvNB4dk/cqEICncL8qjEa2Vhm48uBkJHza+1JAiAm+jzYf9HWMVzypn8LCxMBoez7COkLV6uZdZppBf1/jA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15065},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"5b06a3b76e71e55ad1f16b8860d10dd0dee4c152","scripts":{"dev":"tsup --watch","lint":"npx @biomejs/biome lint --fix","test":"vitest","build":"tsup","format":"npx @biomejs/biome format --write","release":"npm publish --access public","lint:check":"npx @biomejs/biome lint","type-check":"tsc --noEmit","format:check":"npx @biomejs/biome format","prepublishOnly":"npm run build"},"_npmUser":{"name":"jurerotar","email":"hello@jurerotar.com"},"repository":{"url":"git+https://github.com/jurerotar/opfs-mock.git","type":"git"},"_npmVersion":"11.1.0","description":"Mock all origin private file system APIs for your Jest or Vitest tests","directories":{},"_nodeVersion":"22.13.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"8.3.6","vitest":"3.0.6","typescript":"5.7.3","@biomejs/biome":"1.9.4"},"_npmOperationalInternal":{"tmp":"tmp/opfs-mock_2.0.0_1740144593885_0.49103478377231413","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"opfs-mock","version":"2.1.0","keywords":["vitest","jest","test","mock","opfs","storage","node","browser"],"author":{"name":"Jure Rotar","email":"hello@jurerotar.com"},"license":"MIT","_id":"opfs-mock@2.1.0","maintainers":[{"name":"jurerotar","email":"hello@jurerotar.com"}],"homepage":"https://github.com/jurerotar/opfs-mock#readme","bugs":{"url":"https://github.com/jurerotar/opfs-mock/issues"},"dist":{"shasum":"b46f81fbbfceae2ac8d893ea807e802173d734c9","tarball":"https://registry.npmjs.org/opfs-mock/-/opfs-mock-2.1.0.tgz","fileCount":5,"integrity":"sha512-3h3e4huALTG6gVYe2En4ceR0y1O4tNfDl9od6aBGC35i+53Kd9pW4/wwL8KvCcC6qtHD9S2Gi2lsPIY67E5acA==","signatures":[{"sig":"MEYCIQD+ihZxKg9uA5xVy9ZmUYUNGF2l7pVQxZanluSBxZZwWQIhANNamuHope8CvHCSxrBoeeJlFU8ZVNEG6ReZStRoJ2Z5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17054},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"8544730fa19fb45b2402bc58982adcac83d36234","scripts":{"dev":"tsup --watch","lint":"npx @biomejs/biome lint --fix","test":"vitest","build":"tsup","format":"npx @biomejs/biome format --write","release":"npm publish --access public","lint:check":"npx @biomejs/biome lint","type-check":"tsc --noEmit","format:check":"npx @biomejs/biome format","prepublishOnly":"npm run build"},"_npmUser":{"name":"jurerotar","email":"hello@jurerotar.com"},"repository":{"url":"git+https://github.com/jurerotar/opfs-mock.git","type":"git"},"_npmVersion":"11.1.0","description":"Mock all origin private file system APIs for your Jest or Vitest tests","directories":{},"_nodeVersion":"22.13.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"8.4.0","vitest":"3.0.7","typescript":"5.7.3","@biomejs/biome":"1.9.4"},"_npmOperationalInternal":{"tmp":"tmp/opfs-mock_2.1.0_1740601588426_0.8235029176772279","host":"s3://npm-registry-packages-npm-production"}},"2.1.1":{"name":"opfs-mock","version":"2.1.1","keywords":["vitest","jest","test","mock","opfs","storage","node","browser"],"author":{"name":"Jure Rotar","email":"hello@jurerotar.com"},"license":"MIT","_id":"opfs-mock@2.1.1","maintainers":[{"name":"jurerotar","email":"hello@jurerotar.com"}],"homepage":"https://github.com/jurerotar/opfs-mock#readme","bugs":{"url":"https://github.com/jurerotar/opfs-mock/issues"},"dist":{"shasum":"0b5868e80df75fd6589d7af0acf81d16ac20abb9","tarball":"https://registry.npmjs.org/opfs-mock/-/opfs-mock-2.1.1.tgz","fileCount":5,"integrity":"sha512-4d6jWs7RbN8hKp9dVbFJOMNvru7fWYS27dkBcQs0sAXDqJKXZSrjBT8uAzfVhzYxXdG+b0ZjtEy6iipLwNE98A==","signatures":[{"sig":"MEQCIGZLspPLBGnreB+7v3OvjIYNV6ifd7x/qFpgT+S1+5TkAiBUbQInYwmxHoQcxQ+5YtliqH05zjIFnG76K4wLkq4Ocw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17804},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","module":"dist/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"4ae88f7139ee671b98ddc912ca14238899b883f0","scripts":{"dev":"tsup --watch","lint":"npx @biomejs/biome lint --fix","test":"npm run test:node && npm run test:happy-dom","build":"tsup","format":"npx @biomejs/biome format --write","release":"npm publish --access public","test:node":"vitest --environment=node","lint:check":"npx @biomejs/biome lint","test:jsdom":"vitest --environment=jsdom","type-check":"tsc --noEmit","format:check":"npx @biomejs/biome format","prepublishOnly":"npm run build","test:happy-dom":"vitest --environment=happy-dom"},"_npmUser":{"name":"jurerotar","email":"hello@jurerotar.com"},"repository":{"url":"git+https://github.com/jurerotar/opfs-mock.git","type":"git"},"_npmVersion":"11.2.0","description":"Mock all origin private file system APIs for your Jest or Vitest tests","directories":{},"_nodeVersion":"22.13.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"8.4.0","jsdom":"26.0.0","vitest":"3.0.9","happy-dom":"17.4.4","typescript":"5.8.2","@web-std/file":"3.0.3","@biomejs/biome":"1.9.4"},"_npmOperationalInternal":{"tmp":"tmp/opfs-mock_2.1.1_1742919859073_0.21831214967007262","host":"s3://npm-registry-packages-npm-production"}},"2.2.0":{"name":"opfs-mock","version":"2.2.0","keywords":["vitest","jest","test","mock","opfs","storage","node","browser"],"author":{"name":"Jure Rotar","email":"hello@jurerotar.com"},"license":"MIT","_id":"opfs-mock@2.2.0","maintainers":[{"name":"jurerotar","email":"hello@jurerotar.com"}],"homepage":"https://github.com/jurerotar/opfs-mock#readme","bugs":{"url":"https://github.com/jurerotar/opfs-mock/issues"},"dist":{"shasum":"8d40410e171674955f4b00ad49ffea35a12eefcf","tarball":"https://registry.npmjs.org/opfs-mock/-/opfs-mock-2.2.0.tgz","fileCount":5,"integrity":"sha512-nnDn/EDVdk754I6PYPPsrsfvzcbmlTMdTQfxEqEoT8uJnNQp1AbfE/XCSZAf9rfGy6IN6BveECQMIuKhBzPfwA==","signatures":[{"sig":"MEUCIDbUY3feegZyyUhjkvplcRCG4cKdF9jdR1Ft2ZndOjkVAiEAoYFMJwnxxRvRC/W6xIAvPXWmQbX/Tb6ZRV27JCVmfwA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16308},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","module":"dist/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"57735747e4ece93087abb36d60ebd19318161e16","scripts":{"dev":"tsdown --watch","lint":"npx @biomejs/biome lint --fix","test":"npm run test:node && npm run test:happy-dom","build":"tsdown","format":"npx @biomejs/biome format --write","release":"npm publish --access public","test:node":"vitest --environment=node","lint:check":"npx @biomejs/biome lint","test:jsdom":"vitest --environment=jsdom","type-check":"tsc --noEmit","format:check":"npx @biomejs/biome format","prepublishOnly":"npm run build","test:happy-dom":"vitest --environment=happy-dom"},"_npmUser":{"name":"jurerotar","email":"hello@jurerotar.com"},"repository":{"url":"git+https://github.com/jurerotar/opfs-mock.git","type":"git"},"_npmVersion":"11.2.0","description":"Mock all origin private file system APIs for your Jest or Vitest tests","directories":{},"_nodeVersion":"24.0.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"26.1.0","tsdown":"0.12.3","vitest":"3.1.4","happy-dom":"17.4.7","typescript":"5.8.3","@web-std/file":"3.0.3","@biomejs/biome":"1.9.4"},"_npmOperationalInternal":{"tmp":"tmp/opfs-mock_2.2.0_1748244027794_0.20386492411532298","host":"s3://npm-registry-packages-npm-production"}},"2.3.0":{"name":"opfs-mock","version":"2.3.0","keywords":["vitest","jest","test","mock","opfs","storage","node","browser"],"author":{"name":"Jure Rotar","email":"hello@jurerotar.com"},"license":"MIT","_id":"opfs-mock@2.3.0","maintainers":[{"name":"jurerotar","email":"hello@jurerotar.com"}],"homepage":"https://github.com/jurerotar/opfs-mock#readme","bugs":{"url":"https://github.com/jurerotar/opfs-mock/issues"},"dist":{"shasum":"eaa1578e8da21f6280b43d6ba30b84004fd3b8a8","tarball":"https://registry.npmjs.org/opfs-mock/-/opfs-mock-2.3.0.tgz","fileCount":5,"integrity":"sha512-l3x84b5uZjRq5r8mwbVZdoxdNN/wnY22Y2VNhwcryzHaFcN2wVmX8i/8jX4onGrfyO2lpR0O6l++xzw59qPxjg==","signatures":[{"sig":"MEUCIGYyWBV9sWD85e43vpFoYQSmAvvMZ+jy0x2Us6HIUAQkAiEAuWuGCQr4zQR5sxiLFfPWosMNKfwGrHP75Q9gOdKpl48=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17940},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","module":"dist/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"c01adedb03f4346237a53dcaa0145685c1081fba","scripts":{"dev":"tsdown --watch","lint":"npx @biomejs/biome lint --fix","test":"npm run test:node && npm run test:happy-dom","build":"tsdown","format":"npx @biomejs/biome format --write","release":"npm publish --access public","test:node":"vitest --environment=node","lint:check":"npx @biomejs/biome lint","test:jsdom":"vitest --environment=jsdom","type-check":"tsc --noEmit","format:check":"npx @biomejs/biome format","prepublishOnly":"npm run build","test:happy-dom":"vitest --environment=happy-dom"},"_npmUser":{"name":"jurerotar","email":"hello@jurerotar.com"},"repository":{"url":"git+https://github.com/jurerotar/opfs-mock.git","type":"git"},"_npmVersion":"10.9.3","description":"Mock all origin private file system APIs for your Jest or Vitest tests","directories":{},"_nodeVersion":"22.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"26.1.0","tsdown":"0.12.3","vitest":"3.1.4","happy-dom":"17.4.7","typescript":"5.8.3","@web-std/file":"3.0.3","@biomejs/biome":"1.9.4"},"_npmOperationalInternal":{"tmp":"tmp/opfs-mock_2.3.0_1754461763335_0.8065010352395674","host":"s3://npm-registry-packages-npm-production"}},"2.4.0":{"name":"opfs-mock","version":"2.4.0","keywords":["vitest","jest","test","mock","opfs","storage","node","browser"],"author":{"name":"Jure Rotar","email":"hello@jurerotar.com"},"license":"MIT","_id":"opfs-mock@2.4.0","maintainers":[{"name":"jurerotar","email":"hello@jurerotar.com"}],"homepage":"https://github.com/jurerotar/opfs-mock#readme","bugs":{"url":"https://github.com/jurerotar/opfs-mock/issues"},"dist":{"shasum":"f2c984d0c673758287cc90753ee6450f76943fde","tarball":"https://registry.npmjs.org/opfs-mock/-/opfs-mock-2.4.0.tgz","fileCount":5,"integrity":"sha512-mW8pqvbYZK7BHUkOJn266+Qy/bx2R6e3QmBPYPulDuE/68JK4V/ERyeUfLk6xe8St6CFeaOfhve5V/2DsT06Yg==","signatures":[{"sig":"MEQCIDnru7yZt2/wQkCK312XY2bjcETnUgztEtHmdTu8ntQ3AiAn1Ta2XJZPHBxvoDpKa0DO9UrnFqUWhm1vy2gQONPG6g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18034},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","module":"dist/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"274f30af489b0fdce7f3d637a1cea50df72f96a3","scripts":{"dev":"tsdown --watch","lint":"npx @biomejs/biome lint --fix","test":"npm run test:node && npm run test:happy-dom","build":"tsdown","format":"npx @biomejs/biome format --write","release":"npm publish --access public","test:node":"vitest --environment=node","lint:check":"npx @biomejs/biome lint","test:jsdom":"vitest --environment=jsdom","type-check":"tsc --noEmit","format:check":"npx @biomejs/biome format","prepublishOnly":"npm run build","test:happy-dom":"vitest --environment=happy-dom"},"_npmUser":{"name":"jurerotar","email":"hello@jurerotar.com"},"repository":{"url":"git+https://github.com/jurerotar/opfs-mock.git","type":"git"},"_npmVersion":"11.6.2","description":"Mock all origin private file system APIs for your Jest or Vitest tests","directories":{},"_nodeVersion":"25.0.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"27.0.1","tsdown":"0.15.7","vitest":"3.2.4","happy-dom":"20.0.5","typescript":"5.9.3","@web-std/file":"3.0.3","@biomejs/biome":"2.2.6"},"_npmOperationalInternal":{"tmp":"tmp/opfs-mock_2.4.0_1760773282078_0.892255239898323","host":"s3://npm-registry-packages-npm-production"}},"2.5.0":{"name":"opfs-mock","version":"2.5.0","keywords":["vitest","jest","test","mock","opfs","storage","node","browser"],"author":{"name":"Jure Rotar","email":"hello@jurerotar.com"},"license":"MIT","_id":"opfs-mock@2.5.0","maintainers":[{"name":"jurerotar","email":"hello@jurerotar.com"}],"homepage":"https://github.com/jurerotar/opfs-mock#readme","bugs":{"url":"https://github.com/jurerotar/opfs-mock/issues"},"dist":{"shasum":"ba9bbe6dcca089a5d10f9d095c0297a2232f73ea","tarball":"https://registry.npmjs.org/opfs-mock/-/opfs-mock-2.5.0.tgz","fileCount":5,"integrity":"sha512-6RObfF1BHoxsILVaeW0cVIzUhKv8N+7wj4x+pSzSoT2Z8+pDD/7u2wAOqVGF1GVjfq2YnGbr5FcyUN+abJ1VNA==","signatures":[{"sig":"MEYCIQC0pn+deL4DZkKRI89OczVGb7EQxQ9dj3UnmZsbocueewIhAIzZMt7c69A4vVV6m55YM5xREOMMUDp5Bbs6kR2+cjbp","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19914},"main":"dist/index.js","type":"module","module":"dist/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"c2d15df8fa2c43314c06a0e200a026153fbacf6f","scripts":{"dev":"tsdown --watch","lint":"npx @biomejs/biome lint --fix","test":"npm run test:node && npm run test:happy-dom","build":"tsdown","format":"npx @biomejs/biome format --write","release":"npm publish --access public","test:node":"vitest --environment=node","lint:check":"npx @biomejs/biome lint","test:jsdom":"vitest --environment=jsdom","type-check":"tsc --noEmit","format:check":"npx @biomejs/biome format","prepublishOnly":"npm run build","test:happy-dom":"vitest --environment=happy-dom"},"_npmUser":{"name":"jurerotar","email":"hello@jurerotar.com"},"deprecated":"Version 2.5.0 contains incorrect package.json exports field. Please upgrade to 2.5.1","repository":{"url":"git+https://github.com/jurerotar/opfs-mock.git","type":"git"},"_npmVersion":"11.6.2","description":"Mock all origin private file system APIs for your Jest or Vitest tests","directories":{},"_nodeVersion":"24.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"27.1.0","tsdown":"0.16.0","vitest":"4.0.7","happy-dom":"20.0.10","typescript":"5.9.3","@web-std/file":"3.0.3","@biomejs/biome":"2.3.4","@vitest/coverage-v8":"4.0.7"},"_npmOperationalInternal":{"tmp":"tmp/opfs-mock_2.5.0_1762513940546_0.8400786869154959","host":"s3://npm-registry-packages-npm-production"}},"2.5.1":{"name":"opfs-mock","version":"2.5.1","keywords":["vitest","jest","test","mock","opfs","storage","node","browser"],"author":{"name":"Jure Rotar","email":"hello@jurerotar.com"},"license":"MIT","_id":"opfs-mock@2.5.1","maintainers":[{"name":"jurerotar","email":"hello@jurerotar.com"}],"homepage":"https://github.com/jurerotar/opfs-mock#readme","bugs":{"url":"https://github.com/jurerotar/opfs-mock/issues"},"dist":{"shasum":"a861a052c5a49521976ef01a7edfac108388ced8","tarball":"https://registry.npmjs.org/opfs-mock/-/opfs-mock-2.5.1.tgz","fileCount":5,"integrity":"sha512-LCrlY/lIxG/UAVPql43JedWTAfwvtvlEfSPkpw9ffHoYmWZoMYbvCOzCm8AAHoSPRsKQmmwxoRvNpPkea3NCog==","signatures":[{"sig":"MEQCICS7NznMrQLl1ptIxOUCKRtx8UPIPZ+9KYEmwheElCSTAiBKmGCSMlynZGECQJ4AIUkX3iaY/qIsDhPnDnckZyL1mQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20032},"type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","engines":{"node":">=20.0.0"},"exports":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"module-sync":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"gitHead":"deadb1c617ea24fe5e395f811b6c1526117f3ef7","scripts":{"dev":"tsdown --watch","lint":"npx @biomejs/biome lint --fix","test":"npm run test:node && npm run test:happy-dom","build":"tsdown","format":"npx @biomejs/biome format --write","release":"npm publish --access public","test:node":"vitest --environment=node","lint:check":"npx @biomejs/biome lint","test:jsdom":"vitest --environment=jsdom","type-check":"tsc --noEmit","format:check":"npx @biomejs/biome format","prepublishOnly":"npm run build","test:happy-dom":"vitest --environment=happy-dom"},"_npmUser":{"name":"jurerotar","email":"hello@jurerotar.com"},"repository":{"url":"git+https://github.com/jurerotar/opfs-mock.git","type":"git"},"_npmVersion":"11.6.2","description":"Mock all origin private file system APIs for your Jest or Vitest tests","directories":{},"_nodeVersion":"24.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"27.1.0","tsdown":"0.16.0","vitest":"4.0.7","happy-dom":"20.0.10","typescript":"5.9.3","@web-std/file":"3.0.3","@biomejs/biome":"2.3.4","@vitest/coverage-v8":"4.0.7"},"_npmOperationalInternal":{"tmp":"tmp/opfs-mock_2.5.1_1762694445800_0.853837549954664","host":"s3://npm-registry-packages-npm-production"}},"2.6.0":{"name":"opfs-mock","version":"2.6.0","keywords":["vitest","jest","test","mock","opfs","storage","node","browser"],"author":{"name":"Jure Rotar","email":"hello@jurerotar.com"},"license":"MIT","_id":"opfs-mock@2.6.0","maintainers":[{"name":"jurerotar","email":"hello@jurerotar.com"}],"homepage":"https://github.com/jurerotar/opfs-mock#readme","bugs":{"url":"https://github.com/jurerotar/opfs-mock/issues"},"dist":{"shasum":"b8a5d237dc7d6c99c78a27aa5b183d47a809ca9f","tarball":"https://registry.npmjs.org/opfs-mock/-/opfs-mock-2.6.0.tgz","fileCount":5,"integrity":"sha512-kbclKcUaz7H2WZeSMS/2XzIlqgxHg7+Hr6ZId1r2hoJqrMjjrUbqZKhtCwH47C8WvJb4BTxwf9slTu0WoKeQfg==","signatures":[{"sig":"MEYCIQCEhAAjQnAg0SpbJoY1FnXD6+WiFHDRGtxH7TmNXTT3sAIhALWmMoMA8O1FeuMaVYYzDNsOSHwY/oANqk1OFDUbiLhq","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23374},"type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","engines":{"node":">=20.0.0"},"exports":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"module-sync":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"gitHead":"5a1976f24b1b9de30e9d7749d110ff661a00db93","scripts":{"dev":"tsdown --watch","lint":"npx @biomejs/biome lint --fix","test":"npm run test:node && npm run test:happy-dom","build":"tsdown","format":"npx @biomejs/biome format --write","release":"npm publish --access public","test:node":"vitest --environment=node","lint:check":"npx @biomejs/biome lint","test:jsdom":"vitest --environment=jsdom","type-check":"tsgo","format:check":"npx @biomejs/biome format","prepublishOnly":"npm run build","test:happy-dom":"vitest --environment=happy-dom"},"_npmUser":{"name":"jurerotar","email":"hello@jurerotar.com"},"repository":{"url":"git+https://github.com/jurerotar/opfs-mock.git","type":"git"},"_npmVersion":"11.11.0","description":"Mock all origin private file system APIs for your Jest or Vitest tests","directories":{},"_nodeVersion":"24.13.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"28.1.0","tsdown":"0.21.1","vitest":"4.0.18","happy-dom":"20.8.3","typescript":"5.9.3","@web-std/file":"3.0.3","@biomejs/biome":"2.4.6","@vitest/coverage-v8":"4.0.18","@typescript/native-preview":"7.0.0-dev.20260309.1"},"_npmOperationalInternal":{"tmp":"tmp/opfs-mock_2.6.0_1773126871451_0.21079409364128","host":"s3://npm-registry-packages-npm-production"}},"2.6.1":{"name":"opfs-mock","version":"2.6.1","keywords":["vitest","jest","test","mock","opfs","storage","node","browser"],"author":{"name":"Jure Rotar","email":"hello@jurerotar.com"},"license":"MIT","_id":"opfs-mock@2.6.1","maintainers":[{"name":"jurerotar","email":"hello@jurerotar.com"}],"homepage":"https://github.com/jurerotar/opfs-mock#readme","bugs":{"url":"https://github.com/jurerotar/opfs-mock/issues"},"dist":{"shasum":"12d8465982f81023a8d62adf976c6fc6fce8d3c7","tarball":"https://registry.npmjs.org/opfs-mock/-/opfs-mock-2.6.1.tgz","fileCount":5,"integrity":"sha512-Vs15273xxrOcS99selEhhr+rmvJPXAgj3HZtN6dNnqvpN9H0wf/P1guOGBQfaadJ4P3kIpmG5IOxmOb2MlIZjw==","signatures":[{"sig":"MEYCIQDhiGicoA+bnO3EH19WwSl8H4OCXozwA0UuIZrQIMwyKQIhAIHxEVCBNIPqt4OUa878nncnJkjLZx7Cq7pKhWUtVjsJ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23529},"type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","engines":{"node":">=20.0.0"},"exports":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"module-sync":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"gitHead":"bc0501a1e3e13a7c8a8fc26c43812d62d04b8f65","scripts":{"dev":"tsdown --watch","lint":"npx @biomejs/biome lint --fix","test":"npm run test:node && npm run test:happy-dom","build":"tsdown","format":"npx @biomejs/biome format --write","release":"npm publish --access public","test:node":"vitest --environment=node","lint:check":"npx @biomejs/biome lint","test:jsdom":"vitest --environment=jsdom","type-check":"tsgo","format:check":"npx @biomejs/biome format","prepublishOnly":"npm run build","test:happy-dom":"vitest --environment=happy-dom"},"_npmUser":{"name":"jurerotar","email":"hello@jurerotar.com"},"repository":{"url":"git+https://github.com/jurerotar/opfs-mock.git","type":"git"},"_npmVersion":"11.12.1","description":"Mock all origin private file system APIs for your Jest or Vitest tests","directories":{},"_nodeVersion":"25.9.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"29.1.1","tsdown":"0.21.10","vitest":"4.1.5","happy-dom":"20.9.0","typescript":"6.0.3","@web-std/file":"3.0.3","@biomejs/biome":"2.4.14","@vitest/coverage-v8":"4.1.5","@typescript/native-preview":"7.0.0-dev.20260505.1"},"_npmOperationalInternal":{"tmp":"tmp/opfs-mock_2.6.1_1778044909555_0.10059902172422164","host":"s3://npm-registry-packages-npm-production"}},"2.7.0":{"name":"opfs-mock","version":"2.7.0","keywords":["vitest","jest","test","mock","opfs","storage","node","browser"],"author":{"name":"Jure Rotar","email":"hello@jurerotar.com"},"license":"MIT","_id":"opfs-mock@2.7.0","maintainers":[{"name":"jurerotar","email":"hello@jurerotar.com"}],"homepage":"https://github.com/jurerotar/opfs-mock#readme","bugs":{"url":"https://github.com/jurerotar/opfs-mock/issues"},"dist":{"shasum":"22e120da9656023fb2cdbd02ad5b8e7bf013f6e7","tarball":"https://registry.npmjs.org/opfs-mock/-/opfs-mock-2.7.0.tgz","fileCount":5,"integrity":"sha512-c1mFiluwdNU9TyAEpfy/K+/qL2FhImmNGO8TB6CdKxRJztP/Ea7QdSgGlmYpcaDRS2JILJXiHbsDYLXnRHopXQ==","signatures":[{"sig":"MEUCIBb0pH+Tz2/5LPkV0eg5bf5zizFbHMt4rQvrmkKRj//gAiEAvB5Te3ixY8QNDO5LlPOOpKCdJDNONFUe9wf+ITLpT6k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/opfs-mock@2.7.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":28059},"type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","engines":{"node":">=20.0.0"},"exports":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"module-sync":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"gitHead":"6c9950c6d7c7510ef1a0827cbfbc4004a693fcf5","scripts":{"dev":"tsdown --watch","lint":"npx @biomejs/biome lint --fix","test":"npm run test:node && npm run test:happy-dom","build":"tsdown","format":"npx @biomejs/biome format --write","release":"npm publish --access public","test:node":"vitest --environment=node","lint:check":"npx @biomejs/biome lint","test:jsdom":"vitest --environment=jsdom","type-check":"tsgo","format:check":"npx @biomejs/biome format","prepublishOnly":"npm run build","test:happy-dom":"vitest --environment=happy-dom"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4b333715-a818-47f0-bde9-c74eed336bfc"}},"repository":{"url":"git+https://github.com/jurerotar/opfs-mock.git","type":"git"},"_npmVersion":"11.12.1","description":"Mock all origin private file system APIs for your Jest or Vitest tests","directories":{},"_nodeVersion":"24.15.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"29.1.1","tsdown":"0.22.0","vitest":"4.1.7","happy-dom":"20.9.0","typescript":"6.0.3","@web-std/file":"3.0.3","@biomejs/biome":"2.4.15","@vitest/coverage-v8":"4.1.7","@typescript/native-preview":"7.0.0-dev.20260522.1"},"_npmOperationalInternal":{"tmp":"tmp/opfs-mock_2.7.0_1779518651450_0.9946036010230228","host":"s3://npm-registry-packages-npm-production"}},"2.8.0":{"name":"opfs-mock","version":"2.8.0","type":"module","description":"Mock all origin private file system APIs for your Jest or Vitest tests","author":{"name":"Jure Rotar","email":"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"}},"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","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.5.5","@vitest/coverage-v8":"4.1.10","@web-std/file":"3.0.3","happy-dom":"20.11.1","jsdom":"30.0.0","tsdown":"0.22.14","typescript":"7.0.2","vitest":"4.1.10"},"gitHead":"c02e32c8ae385fbdf7da2a0fa27b67a2a72a870c","_id":"opfs-mock@2.8.0","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-SgFiJAhfm/dx7WWjKUYytm0SF+cA45eORsE1kep3727TR22ScnzGgITDBxp+tpKJwtZVMB2ylxgg2A4V5Jy90w==","shasum":"e53b9ad6868ed8d636f49e9674bc7454078bec63","tarball":"https://registry.npmjs.org/opfs-mock/-/opfs-mock-2.8.0.tgz","fileCount":5,"unpackedSize":30062,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/opfs-mock@2.8.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDIe5EU4RofAGUXpE07p+uyFJUUsr7jKlKqdIPsQa6KtwIgHlcjxuchYljY8Tl1bdpcwMay7J1lSWu8wRde+iXZaCE="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4b333715-a818-47f0-bde9-c74eed336bfc"}},"directories":{},"maintainers":[{"name":"jurerotar","email":"hello@jurerotar.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/opfs-mock_2.8.0_1785170135812_0.7081901609025159"},"_hasShrinkwrap":false}},"time":{"created":"2024-10-04T16:38:12.952Z","modified":"2026-07-27T16:35:36.500Z","1.0.0":"2024-10-04T16:38:13.248Z","1.0.1":"2025-01-12T11:23:59.738Z","1.0.2":"2025-01-16T11:07:48.462Z","2.0.0":"2025-02-21T13:29:54.054Z","2.1.0":"2025-02-26T20:26:28.611Z","2.1.1":"2025-03-25T16:24:19.240Z","2.2.0":"2025-05-26T07:20:27.996Z","2.3.0":"2025-08-06T06:29:23.498Z","2.4.0":"2025-10-18T07:41:22.288Z","2.5.0":"2025-11-07T11:12:20.728Z","2.5.1":"2025-11-09T13:20:46.004Z","2.6.0":"2026-03-10T07:14:31.604Z","2.6.1":"2026-05-06T05:21:49.703Z","2.7.0":"2026-05-23T06:44:11.591Z","2.8.0":"2026-07-27T16:35:36.030Z"},"bugs":{"url":"https://github.com/jurerotar/opfs-mock/issues"},"author":{"name":"Jure Rotar","email":"hello@jurerotar.com"},"license":"MIT","homepage":"https://github.com/jurerotar/opfs-mock#readme","keywords":["vitest","jest","test","mock","opfs","storage","node","browser"],"repository":{"type":"git","url":"git+https://github.com/jurerotar/opfs-mock.git"},"description":"Mock all origin private file system APIs for your Jest or Vitest tests","maintainers":[{"name":"jurerotar","email":"hello@jurerotar.com"}],"readme":"# opfs-mock\n\nIn-memory implementation of the [origin private file system](https://developer.mozilla.org/en-US/docs/Web/API/File_System_API/Origin_private_file_system). Its main utility is for testing OPFS-dependent code in Node.js. It's tested\non all supported Node.js versions (`22.x`, `24.x`, `25.x`, `26.x`).\n\n## Installation\n\n```shell\nnpm install -save-dev opfs-mock\n```\n\n## Limitations\n\n- `opfs-mock` requires **Node.js v20.0.0** or higher. It can work on Node v18.0.0 with either `--experimental-fetch` flag enabled or a global\n`File` polyfill.\n\n- `jsdom` testing environment is missing `File.prototype.text()` method, which is required for reading opfs files. Ensure your opfs-dependant tests are ran\nin `node` or `happy-dom` environment.\n\n## Usage\n\nIt replicates the behavior of origin private file system, except data is not persisted to disk.\n\nThe easiest way to use it is to import `opfs-mock`, which will polyfill OPFS API to global scope.\n\n```ts\nimport \"opfs-mock\";\n```\n\nAlternatively, you can explicitly import `storageFactory`:\n\n```ts\nimport { storageFactory } from \"opfs-mock\";\n\ntest('Your test', async () => {\n  const storage = await storageFactory();\n  const root = await storage.getDirectory();\n  const directoryHandle = await root.getFileHandle('test-file.txt', { create: true });\n  // rest of your test\n});\n```\n\n`storageFactory` has `quota` and `usage` values set to `1024 ** 3 (1 GB)` and `0` respectively. When calling `storage.estimate()`, `usage` is dynamically calculated by summing the predefined usage value and any additional computed storage consumption.\nIn case you need specific values, you can pass both as arguments to `storageFactory`.\n\n```ts\nimport { storageFactory } from \"opfs-mock\";\n\ntest('Your test', async () => {\n  const storage = await storageFactory({ quota: 1_000_000, usage: 1_000 });\n  const root = await storage.getDirectory();\n  const directoryHandle = await root.getFileHandle('test-file.txt', { create: true });\n  // rest of your test\n});\n```\n\n### Vitest\n\nTo use `opfs-mock` in a single Vitest test suite, require `opfs-mock` at the beginning of the test file, as described above.\n\nTo use it on all Vitest tests without having to include it in each file, add the auto setup script to the `test.setupFiles` in your Vite config:\n\n```ts\n// vite.config.ts\n\nimport { defineConfig as defineViteConfig, mergeConfig } from 'vite';\nimport { defineConfig as defineVitestConfig } from 'vitest/config';\n\nconst viteConfig = defineViteConfig({\n  ...\n});\n\nconst vitestConfig = defineVitestConfig({\n  test: {\n    setupFiles: ['opfs-mock'],\n  },\n});\n\nexport default mergeConfig(viteConfig, vitestConfig);\n```\n\nAlternatively you can create a new setup file which then imports this module.\n\n```ts\n// vitest-setup.ts\n\nimport \"opfs-mock\";\n```\n\nAdd that file to your `test.setupFiles` array:\n\n```ts\n// vite.config.ts\n\nimport { defineConfig as defineViteConfig, mergeConfig } from 'vite';\nimport { defineConfig as defineVitestConfig } from 'vitest/config';\n\nconst viteConfig = defineViteConfig({\n  ...\n});\n\nconst vitestConfig = defineVitestConfig({\n  test: {\n    setupFiles: ['vitest-setup.ts'],\n  },\n});\n\nexport default mergeConfig(viteConfig, vitestConfig);\n```\n\n\n### Jest\n\nTo use `opfs-mock` in a single Jest test suite, require `opfs-mock` at the beginning of the test file, as described above.\n\nTo use it on all Jest tests without having to include it in each file, add the auto setup script to the `setupFiles` in your Jest config:\n\n```ts\n// jest.config.js\n\n{\n  ...\n  \"setupFiles\": [\n    \"opfs-mock\"\n  ]\n}\n```\n\nAlternatively you can create a new setup file which then imports this module.\n\n```ts\n// jest-setup.ts\n\nimport \"opfs-mock\";\n```\n\nAdd that file to your `setupFiles` array:\n\n```ts\n// jest.config.js\n\n{\n  ...\n  \"setupFiles\": [\n    \"jest-setup\"\n  ]\n}\n```\n\n## Wiping/resetting the OPFS mock for a fresh state\n\nIf you are keeping your tests completely isolated you might want to \"reset\" the state of the mocked OPFS. You can do this by using `resetMockOPFS` function, which creates a completely new instance of the mock.\n\n```ts\nimport { resetMockOPFS } from 'opfs-mock';\n\nbeforeEach(() => {\n  resetMockOPFS();\n});\n\ntest('First isolated test', async () => {\n  // rest of your test\n});\n\ntest('Second isolated test', async () => {\n  // rest of your test\n});\n```\n","readmeFilename":"README.md"}