{"_id":"vitest-when","_rev":"20-4db900f271c89ded2d041e8945029479","name":"vitest-when","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.0":{"name":"vitest-when","version":"0.1.0","keywords":["tdd","testing","mocking"],"author":{"url":"https://mike.cousins.io","name":"Michael Cousins","email":"michael@cousins.io"},"license":"MIT","_id":"vitest-when@0.1.0","maintainers":[{"name":"mcous","email":"mike@cousins.io"}],"homepage":"https://github.com/mcous/vitest-when#readme","bugs":{"url":"https://github.com/mcous/vitest-when/issues"},"dist":{"shasum":"173326e3ed3570378b8e9711ae4c814299317729","tarball":"https://registry.npmjs.org/vitest-when/-/vitest-when-0.1.0.tgz","fileCount":12,"integrity":"sha512-hq9ezgkqM0E3JDjNJZCePcH2OnaOgvomgbyZu2VSvRyT6jFjIHZEbGm1h3KgdG7qvg1K7uH3JRZc1rC4YXoELw==","signatures":[{"sig":"MEQCIEqN1WNgpBj/BQD73rRO9RLjTmXdXD717iyZ9Is4iKO5AiBCAPumnMdKJC5zpKuR6CtuN+Wj1e7p+Mx3N+iWShwnoA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vitest-when@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":47762},"type":"module","types":"./dist/vitest-when.d.ts","exports":{".":{"types":"./dist/vitest-when.d.ts","import":"./dist/vitest-when.js","require":"./dist/vitest-when.cjs"}},"gitHead":"8699d47ed9faca4b7ef668e9c5926e53b2b9610f","scripts":{"all":"concurrently -g pnpm:coverage pnpm:build pnpm:check:*","test":"vitest","build":"tsup --clean --sourcemap --dts --format esm,cjs --target node14 src/vitest-when.ts","format":"pnpm run _prettier --write && pnpm run _eslint --fix","_eslint":"eslint --ignore-path .lintignore \"**/*.ts\"","coverage":"vitest run --coverage","_prettier":"prettier --ignore-path .lintignore \"**/*.@(ts|json|yaml)\"","check:lint":"pnpm run _eslint","check:format":"pnpm run _prettier --check","build-and-check":"concurrently -g pnpm:build pnpm:check:*"},"_npmUser":{"name":"mcous","email":"mike@cousins.io"},"prettier":"@viamrobotics/prettier-config","repository":{"url":"git+https://github.com/mcous/vitest-when.git","type":"git"},"_npmVersion":"9.5.1","description":"Stub behaviors of vitest mocks based on how they are called","directories":{},"_nodeVersion":"18.16.0","eslintConfig":{"extends":"@viamrobotics/eslint-config","settings":{"import/resolver":{"typescript":{"project":"./tsconfig.json"}}},"parserOptions":{"project":"./tsconfig.json"}},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"packageManager":"pnpm@8.5.0","devDependencies":{"tsup":"^6.7.0","eslint":"^8.40.0","vitest":"^0.31.0","prettier":"^2.8.8","typescript":"^5.0.4","concurrently":"^8.0.1","eslint-plugin-import":"^2.27.5","eslint-plugin-sonarjs":"^0.19.0","eslint-plugin-unicorn":"^46.0.1","eslint-config-prettier":"^8.8.0","@typescript-eslint/parser":"^5.59.5","@vitest/coverage-istanbul":"^0.31.0","@viamrobotics/eslint-config":"^0.0.4","@viamrobotics/prettier-config":"^0.0.1","@viamrobotics/typescript-config":"^0.0.3","@typescript-eslint/eslint-plugin":"^5.59.5","eslint-import-resolver-typescript":"^3.5.5"},"peerDependencies":{"vitest":">=0.31.0 <1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vitest-when_0.1.0_1683764596010_0.610053684663501","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"vitest-when","version":"0.1.1","keywords":["tdd","testing","mocking"],"author":{"url":"https://mike.cousins.io","name":"Michael Cousins","email":"michael@cousins.io"},"license":"MIT","_id":"vitest-when@0.1.1","maintainers":[{"name":"mcous","email":"mike@cousins.io"}],"homepage":"https://github.com/mcous/vitest-when#readme","bugs":{"url":"https://github.com/mcous/vitest-when/issues"},"dist":{"shasum":"d0618d0d5a27f21819b89084e6c393eeb8f74bc4","tarball":"https://registry.npmjs.org/vitest-when/-/vitest-when-0.1.1.tgz","fileCount":12,"integrity":"sha512-ix/tqSMDTTxXgHFhhl9jk/f2D6PcC3QOXpCplDnPGSY7ifuufja8WZBF61vozn10KG6PSEvBaZkWvrE4XT24TQ==","signatures":[{"sig":"MEYCIQCzvviZZZGPZJCkq/b2YZ9q/8j+WbrNHSjib32R4tENagIhAOT1v878TAKw6/+ZdKiko1AOKqpuzCh4O83aA922oe4l","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vitest-when@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":48672},"type":"module","types":"./dist/vitest-when.d.ts","exports":{".":{"types":"./dist/vitest-when.d.ts","import":"./dist/vitest-when.js","require":"./dist/vitest-when.cjs"}},"gitHead":"dd1392b57afc57582112adb3131d719fb96ec776","scripts":{"all":"concurrently -g pnpm:coverage pnpm:build pnpm:check:*","test":"vitest","build":"tsup --clean --sourcemap --dts --format esm,cjs --target node14 src/vitest-when.ts","format":"pnpm run _prettier --write && pnpm run _eslint --fix","_eslint":"eslint --ignore-path .lintignore \"**/*.ts\"","coverage":"vitest run --coverage","_prettier":"prettier --ignore-path .lintignore \"**/*.@(ts|json|yaml)\"","check:lint":"pnpm run _eslint","check:format":"pnpm run _prettier --check","build-and-check":"concurrently -g pnpm:build pnpm:check:*"},"_npmUser":{"name":"mcous","email":"mike@cousins.io"},"prettier":"@viamrobotics/prettier-config","repository":{"url":"git+https://github.com/mcous/vitest-when.git","type":"git"},"_npmVersion":"9.5.1","description":"Stub behaviors of vitest mocks based on how they are called","directories":{},"_nodeVersion":"18.16.0","eslintConfig":{"extends":"@viamrobotics/eslint-config","settings":{"import/resolver":{"typescript":{"project":"./tsconfig.json"}}},"parserOptions":{"project":"./tsconfig.json"}},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"packageManager":"pnpm@8.5.0","devDependencies":{"tsup":"^6.7.0","eslint":"^8.40.0","vitest":"^0.31.0","prettier":"^2.8.8","typescript":"^5.0.4","concurrently":"^8.0.1","@vitest/expect":"^0.31.0","eslint-plugin-import":"^2.27.5","eslint-plugin-sonarjs":"^0.19.0","eslint-plugin-unicorn":"^46.0.1","eslint-config-prettier":"^8.8.0","@typescript-eslint/parser":"^5.59.5","@vitest/coverage-istanbul":"^0.31.0","@viamrobotics/eslint-config":"^0.0.4","@viamrobotics/prettier-config":"^0.0.1","@viamrobotics/typescript-config":"^0.0.3","@typescript-eslint/eslint-plugin":"^5.59.5","eslint-import-resolver-typescript":"^3.5.5"},"peerDependencies":{"vitest":">=0.31.0 <1.0.0","@vitest/expect":">=0.31.0 <1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vitest-when_0.1.1_1683775831650_0.08909996264816367","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"vitest-when","version":"0.1.2","keywords":["tdd","testing","mocking"],"author":{"url":"https://mike.cousins.io","name":"Michael Cousins","email":"michael@cousins.io"},"license":"MIT","_id":"vitest-when@0.1.2","maintainers":[{"name":"mcous","email":"mike@cousins.io"}],"homepage":"https://github.com/mcous/vitest-when#readme","bugs":{"url":"https://github.com/mcous/vitest-when/issues"},"dist":{"shasum":"a19dd119d862d50edfad7c9eeccdbf74f736bffb","tarball":"https://registry.npmjs.org/vitest-when/-/vitest-when-0.1.2.tgz","fileCount":13,"integrity":"sha512-skMFHBsMZ1Dd0Q7Pw0CVF7+3TyQo4b0aogVd1R0cMhdeULE/Uk40Cxf6bouU5bur+tJriVJArWhk0olSHfmh7A==","signatures":[{"sig":"MEUCIQD8VYw/Iya6yMJhSso0RJgXwX8jb68SNzMUlwpaj0bIDAIgZFfVIotPQtMfw0JEPN22Z+cRjVfhAabzsso5byFVI14=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vitest-when@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":58478},"type":"module","types":"./dist/vitest-when.d.ts","exports":{".":{"types":"./dist/vitest-when.d.ts","import":"./dist/vitest-when.js","require":"./dist/vitest-when.cjs"}},"gitHead":"544710e469fea185a82b3de390158da7c95ff2e1","scripts":{"all":"concurrently -g pnpm:coverage pnpm:build pnpm:check:*","test":"vitest","build":"tsup --clean --sourcemap --dts --format esm,cjs --target node14 src/vitest-when.ts","format":"pnpm run _prettier --write && pnpm run _eslint --fix","_eslint":"eslint --ignore-path .lintignore \"**/*.ts\"","coverage":"vitest run --coverage","_prettier":"prettier --ignore-path .lintignore \"**/*.@(ts|json|yaml)\"","check:lint":"pnpm run _eslint","check:types":"vitest typecheck --run","check:format":"pnpm run _prettier --check","build-and-check":"concurrently -g pnpm:build pnpm:check:*"},"_npmUser":{"name":"mcous","email":"mike@cousins.io"},"prettier":"@viamrobotics/prettier-config","repository":{"url":"git+https://github.com/mcous/vitest-when.git","type":"git"},"_npmVersion":"9.5.1","description":"Stub behaviors of Vitest mock functions with a small, readable API.","directories":{},"_nodeVersion":"18.16.0","eslintConfig":{"extends":"@viamrobotics/eslint-config","settings":{"import/resolver":{"typescript":{"project":"./tsconfig.json"}}},"parserOptions":{"project":"./tsconfig.json"}},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"packageManager":"pnpm@8.5.1","devDependencies":{"tsup":"^6.7.0","eslint":"^8.40.0","vitest":"^0.31.0","prettier":"^2.8.8","typescript":"^5.0.4","concurrently":"^8.0.1","@vitest/expect":"^0.31.0","eslint-plugin-import":"^2.27.5","eslint-plugin-sonarjs":"^0.19.0","eslint-plugin-unicorn":"^46.0.1","eslint-config-prettier":"^8.8.0","@typescript-eslint/parser":"^5.59.5","@vitest/coverage-istanbul":"^0.31.0","@viamrobotics/eslint-config":"^0.0.4","@viamrobotics/prettier-config":"^0.0.1","@viamrobotics/typescript-config":"^0.0.3","@typescript-eslint/eslint-plugin":"^5.59.5","eslint-import-resolver-typescript":"^3.5.5"},"peerDependencies":{"vitest":">=0.31.0 <1.0.0","@vitest/expect":">=0.31.0 <1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vitest-when_0.1.2_1684787949376_0.8916996990191952","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"vitest-when","version":"0.2.0","keywords":["tdd","testing","mocking"],"author":{"url":"https://mike.cousins.io","name":"Michael Cousins","email":"michael@cousins.io"},"license":"MIT","_id":"vitest-when@0.2.0","maintainers":[{"name":"mcous","email":"mike@cousins.io"}],"homepage":"https://github.com/mcous/vitest-when#readme","bugs":{"url":"https://github.com/mcous/vitest-when/issues"},"dist":{"shasum":"3b3234efa6be0f976616f54e35357b56ed5e5f5f","tarball":"https://registry.npmjs.org/vitest-when/-/vitest-when-0.2.0.tgz","fileCount":13,"integrity":"sha512-BS1+L6HPwV3cMQB+pGa1Zr7gFkKX1TG8GbdgzpTlyW19nvWBmqDZW5GucS79K/lEu0ULWOUceHM56dnr8P/ajg==","signatures":[{"sig":"MEYCIQDn08C3ZSfUL27BVGr3lqAr6twi6NLwvommS1SQYPbOUQIhAMNmY+rUgMfA9D8zdGKv0Drq5SZmJaKJG6/bGnDjmod9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vitest-when@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":54921},"type":"module","types":"./dist/vitest-when.d.ts","exports":{".":{"types":"./dist/vitest-when.d.ts","import":"./dist/vitest-when.js","require":"./dist/vitest-when.cjs"}},"gitHead":"ff6f029028c011c5ad99b363b80628d42228a7b4","scripts":{"all":"concurrently -g pnpm:coverage pnpm:build pnpm:check:*","test":"vitest","build":"tsup --clean --sourcemap --dts --format esm,cjs --target node14 src/vitest-when.ts","format":"pnpm run _prettier --write && pnpm run _eslint --fix","_eslint":"eslint --ignore-path .lintignore \"**/*.ts\"","coverage":"vitest run --coverage","_prettier":"prettier --ignore-path .lintignore \"**/*.@(ts|json|yaml|md)\"","check:lint":"pnpm run _eslint","check:types":"vitest typecheck --run","check:format":"pnpm run _prettier --check","build-and-check":"concurrently -g pnpm:build pnpm:check:*"},"_npmUser":{"name":"mcous","email":"mike@cousins.io"},"prettier":"@mcous/prettier-config","repository":{"url":"git+https://github.com/mcous/vitest-when.git","type":"git"},"_npmVersion":"9.8.1","description":"Stub behaviors of Vitest mock functions with a small, readable API.","directories":{},"_nodeVersion":"18.18.0","eslintConfig":{"extends":"@mcous/eslint-config","parserOptions":{"project":"./tsconfig.json"}},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"packageManager":"pnpm@8.8.0+sha256.d713a5750e41c3660d1e090608c7f607ad00d1dd5ba9b6552b5f390bf37924e9","devDependencies":{"tsup":"^6.7.0","eslint":"8.51.0","vitest":"^0.31.0","prettier":"3.0.3","typescript":"5.2.2","concurrently":"^8.0.1","@vitest/expect":"^0.31.0","@mcous/eslint-config":"0.3.3","eslint-plugin-promise":"6.1.1","eslint-plugin-sonarjs":"0.21.0","eslint-plugin-unicorn":"48.0.1","@mcous/prettier-config":"0.3.0","eslint-config-prettier":"9.0.0","@mcous/typescript-config":"0.2.1","@typescript-eslint/parser":"6.7.4","@vitest/coverage-istanbul":"^0.31.0","@typescript-eslint/eslint-plugin":"6.7.4"},"peerDependencies":{"vitest":">=0.31.0 <1.0.0","@vitest/expect":">=0.31.0 <1.0.0"},"peerDependenciesMeta":{"@vitest/expect":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/vitest-when_0.2.0_1696793192266_0.5879821220215993","host":"s3://npm-registry-packages"}},"0.3.0":{"name":"vitest-when","version":"0.3.0","keywords":["tdd","testing","mocking"],"author":{"url":"https://michael.cousins.io","name":"Michael Cousins","email":"michael@cousins.io"},"license":"MIT","_id":"vitest-when@0.3.0","maintainers":[{"name":"mcous","email":"mike@cousins.io"}],"homepage":"https://github.com/mcous/vitest-when#readme","bugs":{"url":"https://github.com/mcous/vitest-when/issues"},"dist":{"shasum":"663d4274f1e7302bd24ec00dda8269d20b2eff04","tarball":"https://registry.npmjs.org/vitest-when/-/vitest-when-0.3.0.tgz","fileCount":11,"integrity":"sha512-wYfmzd+GkvdNNhbeb/40PnKpetUP5I7qxvdbu1OAXRXaLrnLfSrJTa/dMIbqqrc8SA0vhonpw5p0RHDXwhDM1Q==","signatures":[{"sig":"MEQCIGhCriMfoD+mhlmb3bLLxJI+vXJrZW0rBebldVE7RPH9AiAP6pAgyhaAyz9SC8wogS4vCr2bxSr1HrnunYSAKNQ+2g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vitest-when@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":39297},"type":"module","types":"./dist/vitest-when.d.ts","exports":{".":{"types":"./dist/vitest-when.d.ts","import":"./dist/vitest-when.js"}},"gitHead":"f83b7a00205f84a1bc9c3f78e379f60826d348e6","scripts":{"all":"concurrently -g pnpm:coverage pnpm:build pnpm:check:*","test":"vitest","build":"tsup --clean --sourcemap --dts --format esm --target node14 src/vitest-when.ts","format":"pnpm run _prettier --write && pnpm run _eslint --fix","_eslint":"eslint --ignore-path .lintignore \"**/*.ts\"","coverage":"vitest run --coverage","_prettier":"prettier --ignore-path .lintignore \"**/*.@(ts|json|yaml|md)\"","check:lint":"pnpm run _eslint","check:types":"vitest --typecheck.only --run","check:format":"pnpm run _prettier --check","build-and-check":"concurrently -g pnpm:build pnpm:check:*"},"_npmUser":{"name":"mcous","email":"mike@cousins.io"},"prettier":"@mcous/prettier-config","repository":{"url":"git+https://github.com/mcous/vitest-when.git","type":"git"},"_npmVersion":"9.8.1","description":"Stub behaviors of Vitest mock functions with a small, readable API.","directories":{},"_nodeVersion":"18.18.2","eslintConfig":{"extends":"@mcous/eslint-config","parserOptions":{"project":"./tsconfig.json"}},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"packageManager":"pnpm@8.11.0+sha256.5858806c3b292cbec89b5533662168a957358e2bbd86431516d441dc1aface89","devDependencies":{"tsup":"^8.0.1","eslint":"8.55.0","vitest":"^1.0.1","prettier":"3.1.0","typescript":"5.3.2","concurrently":"^8.2.2","@vitest/expect":"^1.0.1","@mcous/eslint-config":"0.4.2","eslint-plugin-promise":"6.1.1","eslint-plugin-sonarjs":"0.23.0","eslint-plugin-unicorn":"49.0.0","@mcous/prettier-config":"0.3.0","eslint-config-prettier":"9.1.0","@mcous/typescript-config":"0.2.1","@typescript-eslint/parser":"6.13.2","@vitest/coverage-istanbul":"^1.0.1","@typescript-eslint/eslint-plugin":"6.13.2"},"peerDependencies":{"vitest":">=0.31.0 <2.0.0","@vitest/expect":">=0.31.0 <2.0.0"},"peerDependenciesMeta":{"@vitest/expect":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/vitest-when_0.3.0_1701739838967_0.7819133093280186","host":"s3://npm-registry-packages"}},"0.3.1":{"name":"vitest-when","version":"0.3.1","keywords":["tdd","testing","mocking"],"author":{"url":"https://michael.cousins.io","name":"Michael Cousins","email":"michael@cousins.io"},"license":"MIT","_id":"vitest-when@0.3.1","maintainers":[{"name":"mcous","email":"mike@cousins.io"}],"homepage":"https://github.com/mcous/vitest-when#readme","bugs":{"url":"https://github.com/mcous/vitest-when/issues"},"dist":{"shasum":"72db1c0a8e76fae81f8fc21c6da3c769f8e7f8bb","tarball":"https://registry.npmjs.org/vitest-when/-/vitest-when-0.3.1.tgz","fileCount":11,"integrity":"sha512-qZt4VmuvGtkLEqUpq5AJHQtdfhU8wJH+eXHk+WBo8kFT5zdfVV06+vFgYzvuSOq73srlCEsJ4VJqX7uBtOwWLg==","signatures":[{"sig":"MEUCIQC0M66zGCuVG+l/l6JLuzbS2LGFpMOaVkvrwm4YWRWrrgIgN2Gc6PNYWV0bstVzyhspoJxzATDng9HlcEooLUHiV48=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vitest-when@0.3.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":39646},"type":"module","types":"./dist/vitest-when.d.ts","exports":{".":{"types":"./dist/vitest-when.d.ts","import":"./dist/vitest-when.js"}},"gitHead":"d3a51d920d1a225e014825d4491e5dc0251f61ec","scripts":{"all":"concurrently -g pnpm:coverage pnpm:build pnpm:check:*","test":"vitest","build":"tsup --clean --sourcemap --dts --format esm --target node14 src/vitest-when.ts","format":"pnpm run _prettier --write && pnpm run _eslint --fix","_eslint":"eslint --ignore-path .lintignore \"**/*.ts\"","coverage":"vitest run --coverage","_prettier":"prettier --ignore-path .lintignore \"**/*.@(ts|json|yaml|md)\"","check:lint":"pnpm run _eslint","check:types":"vitest --typecheck.only --run","check:format":"pnpm run _prettier --check","build-and-check":"concurrently -g pnpm:build pnpm:check:*"},"_npmUser":{"name":"mcous","email":"mike@cousins.io"},"prettier":"@mcous/prettier-config","repository":{"url":"git+https://github.com/mcous/vitest-when.git","type":"git"},"_npmVersion":"10.2.3","description":"Stub behaviors of Vitest mock functions with a small, readable API.","directories":{},"_nodeVersion":"18.19.0","eslintConfig":{"extends":"@mcous/eslint-config","parserOptions":{"project":"./tsconfig.json"}},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"packageManager":"pnpm@8.14.0+sha256.9cebf61abd83f68177b29484da72da9751390eaad46dfc3072d266bfbb1ba7bf","devDependencies":{"tsup":"^8.0.1","eslint":"8.56.0","vitest":"^1.1.3","prettier":"3.1.1","typescript":"5.3.3","concurrently":"^8.2.2","@vitest/expect":"^1.1.3","@mcous/eslint-config":"0.4.3","eslint-plugin-promise":"6.1.1","eslint-plugin-sonarjs":"0.23.0","eslint-plugin-unicorn":"50.0.1","@mcous/prettier-config":"0.3.0","eslint-config-prettier":"9.1.0","@mcous/typescript-config":"0.2.1","@typescript-eslint/parser":"6.18.1","@vitest/coverage-istanbul":"^1.1.3","@typescript-eslint/eslint-plugin":"6.18.1"},"peerDependencies":{"vitest":">=0.31.0 <2.0.0","@vitest/expect":">=0.31.0 <2.0.0"},"peerDependenciesMeta":{"@vitest/expect":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/vitest-when_0.3.1_1704897564180_0.4599349403023787","host":"s3://npm-registry-packages"}},"0.4.0":{"name":"vitest-when","version":"0.4.0","keywords":["tdd","testing","mocking"],"author":{"url":"https://michael.cousins.io","name":"Michael Cousins","email":"michael@cousins.io"},"license":"MIT","_id":"vitest-when@0.4.0","maintainers":[{"name":"mcous","email":"mike@cousins.io"}],"homepage":"https://github.com/mcous/vitest-when#readme","bugs":{"url":"https://github.com/mcous/vitest-when/issues"},"dist":{"shasum":"e00b95f8c4a5dc9bc594167d238d060bc90d0a15","tarball":"https://registry.npmjs.org/vitest-when/-/vitest-when-0.4.0.tgz","fileCount":12,"integrity":"sha512-OycJdw1Lm9lMnVBUyYgPcOorzYwJgD0Crh9ptTS2noaTDOlqbjXmkKwMPIGD8yr2n7Mk8QP/t3W+4lss/hJGgg==","signatures":[{"sig":"MEYCIQDv7/rXnWjj9DefV4TIdyS/urLiEL4DzC1FlB/L7EOilAIhAJ1qVMGUcZT5/9I4VoaGAwWk6RqYNBSY7Megb0ZOWN4D","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vitest-when@0.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":64037},"type":"module","types":"./dist/vitest-when.d.ts","exports":{".":{"types":"./dist/vitest-when.d.ts","import":"./dist/vitest-when.js"}},"gitHead":"2978911728fef0ff19928dc232dcc57425e5bbea","scripts":{"all":"concurrently -g pnpm:coverage pnpm:build pnpm:check:*","test":"vitest","build":"tsup --clean --sourcemap --dts --format esm --target node14 src/vitest-when.ts","format":"pnpm run _prettier --write && pnpm run _eslint --fix","_eslint":"eslint --ignore-path .lintignore \"**/*.ts\"","coverage":"vitest run --coverage","_prettier":"prettier --ignore-path .lintignore \"**/*.@(ts|json|yaml|md)\"","check:lint":"pnpm run _eslint","check:types":"vitest --typecheck.only --run","check:format":"pnpm run _prettier --check","build-and-check":"concurrently -g pnpm:build pnpm:check:*"},"_npmUser":{"name":"mcous","email":"mike@cousins.io"},"prettier":"@mcous/prettier-config","repository":{"url":"git+https://github.com/mcous/vitest-when.git","type":"git"},"_npmVersion":"10.5.0","description":"Stub behaviors of Vitest mock functions with a small, readable API.","directories":{},"_nodeVersion":"18.20.2","dependencies":{"pretty-format":"^29.7.0"},"eslintConfig":{"extends":"@mcous/eslint-config","parserOptions":{"project":"./tsconfig.json"}},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"packageManager":"pnpm@8.14.0+sha256.9cebf61abd83f68177b29484da72da9751390eaad46dfc3072d266bfbb1ba7bf","devDependencies":{"tsup":"^8.0.1","eslint":"8.56.0","vitest":"^1.1.3","prettier":"3.1.1","typescript":"5.3.3","concurrently":"^8.2.2","@vitest/expect":"^1.1.3","@mcous/eslint-config":"0.4.3","eslint-plugin-promise":"6.1.1","eslint-plugin-sonarjs":"0.23.0","eslint-plugin-unicorn":"50.0.1","@mcous/prettier-config":"0.3.0","eslint-config-prettier":"9.1.0","@mcous/typescript-config":"0.2.1","@typescript-eslint/parser":"6.18.1","@vitest/coverage-istanbul":"^1.1.3","@typescript-eslint/eslint-plugin":"6.18.1"},"peerDependencies":{"vitest":">=0.31.0 <2.0.0","@vitest/expect":">=0.31.0 <2.0.0"},"peerDependenciesMeta":{"@vitest/expect":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/vitest-when_0.4.0_1715444071008_0.016986221818521274","host":"s3://npm-registry-packages"}},"0.4.1":{"name":"vitest-when","version":"0.4.1","keywords":["tdd","testing","mocking"],"author":{"url":"https://michael.cousins.io","name":"Michael Cousins","email":"michael@cousins.io"},"license":"MIT","_id":"vitest-when@0.4.1","maintainers":[{"name":"mcous","email":"mike@cousins.io"}],"homepage":"https://github.com/mcous/vitest-when#readme","bugs":{"url":"https://github.com/mcous/vitest-when/issues"},"dist":{"shasum":"9fe3eadfaaffedd2aedfd62348e2bc2a87d51299","tarball":"https://registry.npmjs.org/vitest-when/-/vitest-when-0.4.1.tgz","fileCount":12,"integrity":"sha512-DIM/EP78OKcfny3JjjaCFtX3ftD/kdDySlBb7jAS4sLg/ndBpYFaubaHIfdqtD72iIqz/mci2SI0S4H1hh6Tlg==","signatures":[{"sig":"MEUCIG089WOXYI4Tws91weWmsulHZzF42qq0IHEusfIH3ehbAiEAp7W6ln/8R0l9gxT0m6b+ldgpi0bwC4vak//7+vQeYE8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vitest-when@0.4.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":64082},"type":"module","types":"./dist/vitest-when.d.ts","exports":{".":{"types":"./dist/vitest-when.d.ts","import":"./dist/vitest-when.js"}},"gitHead":"cbe8f0118a813f52e11dad41e095b297303648e4","scripts":{"all":"concurrently -g pnpm:coverage pnpm:build pnpm:check:*","test":"vitest","build":"tsup --clean --sourcemap --dts --format esm --target node14 src/vitest-when.ts","format":"pnpm run _prettier --write && pnpm run _eslint --fix","_eslint":"eslint --ignore-path .lintignore \"**/*.ts\"","coverage":"vitest run --coverage","_prettier":"prettier --ignore-path .lintignore \"**/*.@(ts|json|yaml|md)\"","check:lint":"pnpm run _eslint","check:types":"vitest --typecheck.only --run","check:format":"pnpm run _prettier --check","build-and-check":"concurrently -g pnpm:build pnpm:check:*"},"_npmUser":{"name":"mcous","email":"mike@cousins.io"},"prettier":"@mcous/prettier-config","repository":{"url":"git+https://github.com/mcous/vitest-when.git","type":"git"},"_npmVersion":"10.7.0","description":"Stub behaviors of Vitest mock functions with a small, readable API.","directories":{},"_nodeVersion":"18.20.3","dependencies":{"pretty-format":"^29.7.0"},"eslintConfig":{"rules":{"@typescript-eslint/restrict-template-expressions":["error",{"allowNumber":true}]},"extends":"@mcous/eslint-config","parserOptions":{"project":"./tsconfig.json"}},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"packageManager":"pnpm@8.15.8+sha256.691fe176eea9a8a80df20e4976f3dfb44a04841ceb885638fe2a26174f81e65e","devDependencies":{"tsup":"^8.1.0","eslint":"8.56.0","vitest":"^2.0.1","prettier":"3.3.2","typescript":"5.5.3","concurrently":"^8.2.2","@vitest/expect":"^2.0.1","@mcous/eslint-config":"0.4.4","eslint-plugin-promise":"6.4.0","eslint-plugin-sonarjs":"0.24.0","eslint-plugin-unicorn":"51.0.1","@mcous/prettier-config":"0.3.0","eslint-config-prettier":"9.1.0","@mcous/typescript-config":"0.2.1","@typescript-eslint/parser":"7.16.0","@vitest/coverage-istanbul":"^2.0.1","@typescript-eslint/eslint-plugin":"7.16.0"},"peerDependencies":{"vitest":">=0.31.0 <3.0.0","@vitest/expect":">=0.31.0 <3.0.0"},"peerDependenciesMeta":{"@vitest/expect":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/vitest-when_0.4.1_1720667507709_0.3938849060192793","host":"s3://npm-registry-packages"}},"0.5.0":{"name":"vitest-when","version":"0.5.0","keywords":["tdd","testing","mocking"],"author":{"url":"https://michael.cousins.io","name":"Michael Cousins","email":"michael@cousins.io"},"license":"MIT","_id":"vitest-when@0.5.0","maintainers":[{"name":"mcous","email":"michael@cousins.io"}],"homepage":"https://github.com/mcous/vitest-when#readme","bugs":{"url":"https://github.com/mcous/vitest-when/issues"},"dist":{"shasum":"1cef4713a71c30af741964df780e50485177eaf0","tarball":"https://registry.npmjs.org/vitest-when/-/vitest-when-0.5.0.tgz","fileCount":12,"integrity":"sha512-BYDfzSawgKsV5GX3bU9ZbURuljjBCqi5KPtE2hBn/DsCRThU0z4qH0PAhJGemyKNnR01ADObXkmm1UPDHGzVUw==","signatures":[{"sig":"MEYCIQCsCodqzSZTfv7AeWX155xl9cZW99rgGLnOXfj6tQjykgIhAONWSNIvTkCdyaB9Xo9mHhaS16OkA920c/81dEmbu2ab","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vitest-when@0.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":66162},"type":"module","types":"./dist/vitest-when.d.ts","exports":{".":{"types":"./dist/vitest-when.d.ts","import":"./dist/vitest-when.js"}},"gitHead":"d7b7234e5a891a6c4fe3f68c05b6afa0b870c40e","scripts":{"all":"concurrently -g pnpm:coverage pnpm:build pnpm:check:*","test":"vitest","build":"tsup --clean --sourcemap --dts --format esm --target node14 src/vitest-when.ts","format":"pnpm run _prettier --write && pnpm run _eslint --fix","_eslint":"eslint --ignore-path .lintignore \"**/*.ts\"","coverage":"vitest run --coverage","_prettier":"prettier --ignore-path .lintignore \"**/*.@(ts|json|yaml|md)\"","check:lint":"pnpm run _eslint","check:types":"vitest --typecheck.only --run","check:format":"pnpm run _prettier --check","build-and-check":"concurrently -g pnpm:build pnpm:check:*"},"_npmUser":{"name":"mcous","email":"michael@cousins.io"},"prettier":"@mcous/prettier-config","repository":{"url":"git+https://github.com/mcous/vitest-when.git","type":"git"},"_npmVersion":"10.7.0","description":"Stub behaviors of Vitest mock functions with a small, readable API.","directories":{},"_nodeVersion":"18.20.4","dependencies":{"pretty-format":"^29.7.0"},"eslintConfig":{"rules":{"@typescript-eslint/restrict-template-expressions":["error",{"allowNumber":true}]},"extends":"@mcous/eslint-config","parserOptions":{"project":"./tsconfig.json"}},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"packageManager":"pnpm@8.15.8+sha256.691fe176eea9a8a80df20e4976f3dfb44a04841ceb885638fe2a26174f81e65e","devDependencies":{"tsup":"^8.1.0","eslint":"8.56.0","vitest":"^2.0.1","prettier":"3.3.2","typescript":"5.5.3","concurrently":"^8.2.2","@vitest/expect":"^2.0.1","@mcous/eslint-config":"0.4.4","eslint-plugin-promise":"6.4.0","eslint-plugin-sonarjs":"0.24.0","eslint-plugin-unicorn":"51.0.1","@mcous/prettier-config":"0.3.0","eslint-config-prettier":"9.1.0","@mcous/typescript-config":"0.2.1","@typescript-eslint/parser":"7.16.0","@vitest/coverage-istanbul":"^2.0.1","@typescript-eslint/eslint-plugin":"7.16.0"},"peerDependencies":{"vitest":">=0.31.0 <3.0.0","@vitest/expect":">=0.31.0 <3.0.0"},"peerDependenciesMeta":{"@vitest/expect":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/vitest-when_0.5.0_1730737711309_0.08402474601289311","host":"s3://npm-registry-packages"}},"0.6.0":{"name":"vitest-when","version":"0.6.0","keywords":["tdd","testing","mocking"],"author":{"url":"https://michael.cousins.io","name":"Michael Cousins","email":"michael@cousins.io"},"license":"MIT","_id":"vitest-when@0.6.0","maintainers":[{"name":"mcous","email":"michael@cousins.io"}],"homepage":"https://github.com/mcous/vitest-when#readme","bugs":{"url":"https://github.com/mcous/vitest-when/issues"},"dist":{"shasum":"2944c1cc24b90623e8603b4539eafab8978def09","tarball":"https://registry.npmjs.org/vitest-when/-/vitest-when-0.6.0.tgz","fileCount":12,"integrity":"sha512-t6RbY1ZYj7ndrlvVPUSbt+SCQkBTET8nyvCqXsaTzGFuRHjoA0qFMmu5qGcJjn/8s9RCjB7od5TOKHezpHE2ow==","signatures":[{"sig":"MEUCIEeO7OzgX0eGWQgy8vA14jEKi0Ewa42Dxa+rtyHWFqheAiEA+GYuw2bDU0vPwB7yka1X8a0hCHoeHsrIZTYckP9y6v4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vitest-when@0.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":66154},"type":"module","types":"./dist/vitest-when.d.ts","exports":{".":{"types":"./dist/vitest-when.d.ts","import":"./dist/vitest-when.js"}},"gitHead":"ecf2e3ac7e8898a418a84105521d5e1488ef0754","scripts":{"all":"concurrently -g pnpm:coverage pnpm:build pnpm:check:*","test":"vitest","build":"tsup --clean --sourcemap --dts --format esm --target node14 src/vitest-when.ts","format":"pnpm run _prettier --write && pnpm run _eslint --fix","_eslint":"eslint --ignore-path .lintignore \"**/*.ts\"","coverage":"vitest run --coverage","_prettier":"prettier --ignore-path .lintignore \"**/*.@(ts|json|yaml|md)\"","check:lint":"pnpm run _eslint","check:types":"vitest --typecheck.only --run","check:format":"pnpm run _prettier --check","build-and-check":"concurrently -g pnpm:build pnpm:check:*"},"_npmUser":{"name":"mcous","email":"michael@cousins.io"},"prettier":"@mcous/prettier-config","repository":{"url":"git+https://github.com/mcous/vitest-when.git","type":"git"},"_npmVersion":"10.8.2","description":"Stub behaviors of Vitest mock functions with a small, readable API.","directories":{},"_nodeVersion":"18.20.5","dependencies":{"pretty-format":"^29.7.0"},"eslintConfig":{"rules":{"@typescript-eslint/restrict-template-expressions":["error",{"allowNumber":true}]},"extends":"@mcous/eslint-config","parserOptions":{"project":"./tsconfig.json"}},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"packageManager":"pnpm@8.15.8+sha256.691fe176eea9a8a80df20e4976f3dfb44a04841ceb885638fe2a26174f81e65e","devDependencies":{"tsup":"^8.3.5","eslint":"8.57.1","vitest":"^3.0.2","prettier":"3.4.2","typescript":"5.7.3","concurrently":"^9.1.2","@vitest/expect":"^3.0.2","@mcous/eslint-config":"0.4.4","eslint-plugin-promise":"6.4.0","eslint-plugin-sonarjs":"0.24.0","eslint-plugin-unicorn":"51.0.1","@mcous/prettier-config":"0.3.0","eslint-config-prettier":"9.1.0","@mcous/typescript-config":"0.2.1","@typescript-eslint/parser":"7.16.0","@vitest/coverage-istanbul":"^3.0.2","@typescript-eslint/eslint-plugin":"7.16.0"},"peerDependencies":{"vitest":">=0.31.0 <4","@vitest/expect":">=0.31.0 <4"},"peerDependenciesMeta":{"@vitest/expect":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/vitest-when_0.6.0_1737395447015_0.4093068446949786","host":"s3://npm-registry-packages-npm-production"}},"0.6.1":{"name":"vitest-when","version":"0.6.1","keywords":["tdd","testing","mocking"],"author":{"url":"https://michael.cousins.io","name":"Michael Cousins","email":"michael@cousins.io"},"license":"MIT","_id":"vitest-when@0.6.1","maintainers":[{"name":"mcous","email":"michael@cousins.io"}],"homepage":"https://github.com/mcous/vitest-when#readme","bugs":{"url":"https://github.com/mcous/vitest-when/issues"},"dist":{"shasum":"86c0123e80d1d9addfa878733a8881b72f03b24c","tarball":"https://registry.npmjs.org/vitest-when/-/vitest-when-0.6.1.tgz","fileCount":12,"integrity":"sha512-KLMQaRuMBBpc6xQeDsYi69ypBBU4p9hUq388xq/b/d0xL6+6f9PmOxMs1K1iofqV3Kl8JWV9ym8S/V1oIN6wzg==","signatures":[{"sig":"MEUCIQCABJlTT9ejBQvxHNMhcnXXBEOPVI4bFpQpwvwgb1DD7wIgJMr1F0eXZkwut7OWuUB0Eywe3Iyz1A0zpgQAn2gzUgg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vitest-when@0.6.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":66134},"pnpm":{"onlyBuiltDependencies":["esbuild"]},"type":"module","types":"./dist/vitest-when.d.ts","exports":{".":{"types":"./dist/vitest-when.d.ts","import":"./dist/vitest-when.js"}},"gitHead":"5736534ac1bab6ea4d63164c1970922613065086","scripts":{"all":"concurrently -g pnpm:coverage pnpm:build pnpm:check:*","test":"vitest","build":"tsup --clean --sourcemap --dts --format esm --target node14 src/vitest-when.ts","format":"eslint . --fix && prettier . --write","coverage":"vitest run --coverage","check:lint":"eslint .","check:types":"vitest --typecheck.only --run","check:format":"prettier . --check","build-and-check":"concurrently -g pnpm:build pnpm:check:*"},"_npmUser":{"name":"mcous","email":"michael@cousins.io"},"prettier":"@mcous/prettier-config","repository":{"url":"git+https://github.com/mcous/vitest-when.git","type":"git"},"_npmVersion":"10.9.2","description":"Stub behaviors of Vitest mock functions with a small, readable API.","directories":{},"_nodeVersion":"22.15.0","dependencies":{"pretty-format":"^29.7.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"packageManager":"pnpm@10.4.1+sha256.4b702887986995933d4300836b04d6d02a43bc72b52e4f7e93a4ca608b959197","devDependencies":{"tsup":"^8.3.6","eslint":"^9.20.1","vitest":"^3.2.0","prettier":"^3.5.1","typescript":"5.7.3","@types/node":"^22.13.4","concurrently":"^9.1.2","@vitest/expect":"^3.2.0","@mcous/eslint-config":"^0.5.1","@mcous/prettier-config":"^0.3.0","@mcous/typescript-config":"^0.2.1","@vitest/coverage-istanbul":"^3.2.0"},"peerDependencies":{"vitest":">=0.31.0 <4","@vitest/expect":">=0.31.0 <4"},"peerDependenciesMeta":{"@vitest/expect":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/vitest-when_0.6.1_1748960012919_0.3844738321798551","host":"s3://npm-registry-packages-npm-production"}},"0.6.2":{"name":"vitest-when","version":"0.6.2","keywords":["tdd","testing","mocking"],"author":{"url":"https://michael.cousins.io","name":"Michael Cousins","email":"michael@cousins.io"},"license":"MIT","_id":"vitest-when@0.6.2","maintainers":[{"name":"mcous","email":"michael@cousins.io"}],"homepage":"https://github.com/mcous/vitest-when#readme","bugs":{"url":"https://github.com/mcous/vitest-when/issues"},"dist":{"shasum":"4dcd686458642037e6f3481a615b4319d1a3b53c","tarball":"https://registry.npmjs.org/vitest-when/-/vitest-when-0.6.2.tgz","fileCount":12,"integrity":"sha512-xWWlRkWcCXT/2uWpG06a8PWZUqAE6lb2lvU8zl4SwuwbbqwV2UdG45Y4j+N5qPnihJESNdKUE8+PdUl0+v83TQ==","signatures":[{"sig":"MEUCIQCH/NRyYcXVr1RBRx0hJvOR99CoQie1hB7XiZp9evSTfwIgUeXeS14mNoqAf0cvmoEUBtHGQXV6dNni/XQuVWIiHl0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vitest-when@0.6.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":66134},"pnpm":{"onlyBuiltDependencies":["esbuild"]},"type":"module","types":"./dist/vitest-when.d.ts","exports":{".":{"types":"./dist/vitest-when.d.ts","import":"./dist/vitest-when.js"}},"gitHead":"24e1b63954821425d39282b631c3997bf79ac604","scripts":{"all":"concurrently -g pnpm:coverage pnpm:build pnpm:check:*","test":"vitest","build":"tsup --clean --sourcemap --dts --format esm --target node14 src/vitest-when.ts","format":"eslint . --fix && prettier . --write","coverage":"vitest run --coverage","check:lint":"eslint .","check:types":"vitest --typecheck.only --run","check:format":"prettier . --check","build-and-check":"concurrently -g pnpm:build pnpm:check:*"},"_npmUser":{"name":"mcous","email":"michael@cousins.io"},"prettier":"@mcous/prettier-config","repository":{"url":"git+https://github.com/mcous/vitest-when.git","type":"git"},"_npmVersion":"10.9.2","description":"Stub behaviors of Vitest mock functions with a small, readable API.","directories":{},"_nodeVersion":"22.17.0","dependencies":{"pretty-format":"^30.0.2"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"packageManager":"pnpm@10.4.1+sha256.4b702887986995933d4300836b04d6d02a43bc72b52e4f7e93a4ca608b959197","devDependencies":{"tsup":"^8.5.0","eslint":"^9.31.0","vitest":"^3.2.4","prettier":"^3.6.2","typescript":"5.8.3","@types/node":"^24.0.14","concurrently":"^9.2.0","@vitest/expect":"^3.2.4","@mcous/eslint-config":"^0.6.0","@mcous/prettier-config":"^0.4.0","@mcous/typescript-config":"^0.3.0","@vitest/coverage-istanbul":"^3.2.4"},"peerDependencies":{"vitest":">=0.31.0 <5","@vitest/expect":">=0.31.0 <5"},"peerDependenciesMeta":{"@vitest/expect":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/vitest-when_0.6.2_1752846744669_0.5934301720438508","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"name":"vitest-when","version":"0.7.0","keywords":["tdd","testing","mocking"],"author":{"url":"https://michael.cousins.io","name":"Michael Cousins","email":"michael@cousins.io"},"license":"MIT","_id":"vitest-when@0.7.0","maintainers":[{"name":"mcous","email":"michael@cousins.io"}],"homepage":"https://github.com/mcous/vitest-when#readme","bugs":{"url":"https://github.com/mcous/vitest-when/issues"},"dist":{"shasum":"d813c46c905e757e763e5dfff36063811512892a","tarball":"https://registry.npmjs.org/vitest-when/-/vitest-when-0.7.0.tgz","fileCount":12,"integrity":"sha512-RhR5ZjeUdYn/ow2pbjVz9QJkf57jYdabaIRoplG4MU8308EtBcFrFCsK4et5hgiNWLT9W5Q0b+4GcDs31xnzqQ==","signatures":[{"sig":"MEUCIHfNX7ttp1xvLXHPV6eNVHcmKYbORY5u6WC+JCY7w2GDAiEAkYYZDcnKvvtq56WOWTUv7T7XzMm1x4TfOheudXj8MfE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vitest-when@0.7.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":67863},"pnpm":{"onlyBuiltDependencies":["esbuild"]},"type":"module","types":"./dist/vitest-when.d.ts","exports":{".":{"types":"./dist/vitest-when.d.ts","import":"./dist/vitest-when.js"}},"gitHead":"e76e73273f3e54844f7376d2f598f549ca40bd24","scripts":{"all":"concurrently -g pnpm:coverage pnpm:build pnpm:check:*","test":"vitest","build":"tsup --clean --sourcemap --dts --format esm --target node14 src/vitest-when.ts","format":"eslint . --fix && prettier . --write","coverage":"vitest run --coverage","check:lint":"eslint .","check:types":"vitest --typecheck.only --run","check:format":"prettier . --check","build-and-check":"concurrently -g pnpm:build pnpm:check:*"},"_npmUser":{"name":"mcous","email":"michael@cousins.io"},"prettier":"@mcous/prettier-config","repository":{"url":"git+https://github.com/mcous/vitest-when.git","type":"git"},"_npmVersion":"10.9.2","description":"Stub behaviors of Vitest mock functions with a small, readable API.","directories":{},"_nodeVersion":"22.17.1","dependencies":{"pretty-format":"^30.0.2"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"packageManager":"pnpm@10.4.1+sha256.4b702887986995933d4300836b04d6d02a43bc72b52e4f7e93a4ca608b959197","devDependencies":{"tsup":"^8.5.0","eslint":"^9.31.0","vitest":"^3.2.4","prettier":"^3.6.2","typescript":"5.8.3","@types/node":"^24.0.14","concurrently":"^9.2.0","@vitest/expect":"^3.2.4","@mcous/eslint-config":"^0.6.0","@mcous/prettier-config":"^0.4.0","@mcous/typescript-config":"^0.3.0","@vitest/coverage-istanbul":"^3.2.4"},"peerDependencies":{"vitest":">=0.31.0 <5","@vitest/expect":">=0.31.0 <5"},"peerDependenciesMeta":{"@vitest/expect":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/vitest-when_0.7.0_1754510983870_0.05880330801521905","host":"s3://npm-registry-packages-npm-production"}},"0.8.0":{"name":"vitest-when","version":"0.8.0","keywords":["tdd","testing","mocking"],"author":{"url":"https://michael.cousins.io","name":"Michael Cousins","email":"michael@cousins.io"},"license":"MIT","_id":"vitest-when@0.8.0","maintainers":[{"name":"mcous","email":"michael@cousins.io"}],"homepage":"https://github.com/mcous/vitest-when#readme","bugs":{"url":"https://github.com/mcous/vitest-when/issues"},"dist":{"shasum":"1f33e13fe52f9bed80084b597b64a2815e866ee1","tarball":"https://registry.npmjs.org/vitest-when/-/vitest-when-0.8.0.tgz","fileCount":13,"integrity":"sha512-/QaV+1Wm9nC3i4RiYeNSkNLPjwfeGbxOnj740vCpdSkS1cI8e7BYfuft/ERcCYyYWzWckvzYcNV3+mnkeb04ZQ==","signatures":[{"sig":"MEYCIQCh0WzVvedxNH3/knPzTXlbEHOPIqMCKUJUB8VZOm2YPQIhAMs9Stj2uDw8MPc2qBlgfUBjV1F7cISJTZKEYBa0GPuX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vitest-when@0.8.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":72486},"pnpm":{"onlyBuiltDependencies":["esbuild"]},"type":"module","types":"./dist/vitest-when.d.ts","exports":{".":{"types":"./dist/vitest-when.d.ts","import":"./dist/vitest-when.js"}},"gitHead":"82347ad9e1e9771d3f7ec7816bbbb13b03bfb0de","scripts":{"all":"concurrently -g pnpm:coverage pnpm:build pnpm:check:*","test":"vitest","build":"tsup --clean --sourcemap --dts --format esm --target node14 src/vitest-when.ts","format":"eslint . --fix && prettier . --write","coverage":"vitest run --coverage","check:lint":"eslint .","check:types":"vitest --typecheck.only --run","check:format":"prettier . --check","build-and-check":"concurrently -g pnpm:build pnpm:check:*"},"_npmUser":{"name":"mcous","email":"michael@cousins.io"},"prettier":"@mcous/prettier-config","repository":{"url":"git+https://github.com/mcous/vitest-when.git","type":"git"},"_npmVersion":"10.9.3","description":"Stub behaviors of Vitest mock functions with a small, readable API.","directories":{},"_nodeVersion":"22.18.0","dependencies":{"pretty-format":"^30.0.2"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"packageManager":"pnpm@10.4.1+sha256.4b702887986995933d4300836b04d6d02a43bc72b52e4f7e93a4ca608b959197","devDependencies":{"tsup":"^8.5.0","eslint":"^9.31.0","vitest":"^3.2.4","prettier":"^3.6.2","typescript":"5.8.3","@types/node":"^24.0.14","concurrently":"^9.2.0","@vitest/expect":"^3.2.4","@mcous/eslint-config":"^0.6.0","@mcous/prettier-config":"^0.4.0","@mcous/typescript-config":"^0.3.0","@vitest/coverage-istanbul":"^3.2.4"},"peerDependencies":{"vitest":">=0.31.0 <5","@vitest/expect":">=0.31.0 <5"},"peerDependenciesMeta":{"@vitest/expect":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/vitest-when_0.8.0_1756473004070_0.8613118013469956","host":"s3://npm-registry-packages-npm-production"}},"0.8.1":{"name":"vitest-when","version":"0.8.1","keywords":["tdd","testing","mocking"],"author":{"url":"https://michael.cousins.io","name":"Michael Cousins","email":"michael@cousins.io"},"license":"MIT","_id":"vitest-when@0.8.1","maintainers":[{"name":"mcous","email":"michael@cousins.io"}],"homepage":"https://github.com/mcous/vitest-when#readme","bugs":{"url":"https://github.com/mcous/vitest-when/issues"},"dist":{"shasum":"c05e3c63680b7380384483d0f2aa3b46c2902b84","tarball":"https://registry.npmjs.org/vitest-when/-/vitest-when-0.8.1.tgz","fileCount":13,"integrity":"sha512-D1yUXeQMDlf2RING3ou7lii6wNyNeKRHxO4Mrw6qMiKSB3itm2PMSYWV8zlohglOV/sYlJq210Co2cp0OIdJQA==","signatures":[{"sig":"MEUCIBMF6vMYwgLdC/4gAV/YU/s2IjVkYYPuC8ZAGUXiZW+rAiEAj36SYTqvBl0p7qd43EmWGJefVUs1PpwIIFRGlI7kjZM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vitest-when@0.8.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":74279},"pnpm":{"onlyBuiltDependencies":["esbuild"]},"type":"module","types":"./dist/vitest-when.d.ts","exports":{".":{"types":"./dist/vitest-when.d.ts","import":"./dist/vitest-when.js"}},"gitHead":"decffc6add16484527482d3b9070cc2765a6f3f9","scripts":{"all":"concurrently -g pnpm:coverage pnpm:build pnpm:check:*","test":"vitest","build":"tsup --clean --sourcemap --dts --format esm --target node14 src/vitest-when.ts","format":"eslint . --fix && prettier . --write","coverage":"vitest run --coverage","check:lint":"eslint .","check:types":"vitest --typecheck.only --run","check:format":"prettier . --check","build-and-check":"concurrently -g pnpm:build pnpm:check:*"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:47171b75-4065-458a-a9d3-90166b504967"}},"prettier":"@mcous/prettier-config","repository":{"url":"git+https://github.com/mcous/vitest-when.git","type":"git"},"_npmVersion":"11.6.0","description":"Stub behaviors of Vitest mock functions with a small, readable API.","directories":{},"_nodeVersion":"24.9.0","dependencies":{"pretty-format":"^30.0.2"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"packageManager":"pnpm@10.4.1+sha256.4b702887986995933d4300836b04d6d02a43bc72b52e4f7e93a4ca608b959197","devDependencies":{"tsup":"^8.5.0","eslint":"^9.31.0","vitest":"^3.2.4","prettier":"^3.6.2","typescript":"5.8.3","@types/node":"^24.0.14","concurrently":"^9.2.0","@vitest/expect":"^3.2.4","@mcous/eslint-config":"^0.6.0","@mcous/prettier-config":"^0.4.0","@mcous/typescript-config":"^0.3.0","@vitest/coverage-istanbul":"^3.2.4"},"peerDependencies":{"vitest":">=0.31.0 <5","@vitest/expect":">=0.31.0 <5"},"peerDependenciesMeta":{"@vitest/expect":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/vitest-when_0.8.1_1759487760844_0.5160491056269791","host":"s3://npm-registry-packages-npm-production"}},"0.9.0":{"name":"vitest-when","version":"0.9.0","keywords":["tdd","testing","mocking"],"author":{"url":"https://michael.cousins.io","name":"Michael Cousins","email":"michael@cousins.io"},"license":"MIT","_id":"vitest-when@0.9.0","maintainers":[{"name":"mcous","email":"michael@cousins.io"}],"homepage":"https://github.com/mcous/vitest-when#readme","bugs":{"url":"https://github.com/mcous/vitest-when/issues"},"dist":{"shasum":"5ddde941d608e056ec3bab9c470f59c951625fb3","tarball":"https://registry.npmjs.org/vitest-when/-/vitest-when-0.9.0.tgz","fileCount":13,"integrity":"sha512-VeM2152wwfiSDAHxBM5CmSxzmNMG2pC0I+v13YboM/hes1DvoE+/RCBBDk5uNGut/OpG82aXQCriN1owgzls6w==","signatures":[{"sig":"MEUCIB1oRMhjjoWnunBpYFe3ZnWzmuivugF3ppxayI54lc1HAiEA0dIjkMAA9Ypvp9RGHlr50u44n2/un+2xn/bs+dCff1A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vitest-when@0.9.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":76560},"pnpm":{"onlyBuiltDependencies":["esbuild"]},"type":"module","types":"./dist/vitest-when.d.ts","exports":{".":{"types":"./dist/vitest-when.d.ts","import":"./dist/vitest-when.js"}},"gitHead":"ff8c781cc9de7981fc6d55ce96d6991f3c9065e1","scripts":{"all":"concurrently -g pnpm:coverage pnpm:build pnpm:check:*","test":"vitest","build":"tsup --clean --sourcemap --dts --format esm --target node14 src/vitest-when.ts","format":"eslint . --fix && prettier . --write","coverage":"vitest run --coverage","check:lint":"eslint .","check:types":"vitest --typecheck.only --run","check:format":"prettier . --check","build-and-check":"concurrently -g pnpm:build pnpm:check:*"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:47171b75-4065-458a-a9d3-90166b504967"}},"prettier":"@mcous/prettier-config","repository":{"url":"git+https://github.com/mcous/vitest-when.git","type":"git"},"_npmVersion":"11.6.1","description":"Stub behaviors of Vitest mock functions with a small, readable API.","directories":{},"_nodeVersion":"24.10.0","dependencies":{"pretty-format":"^30.2.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"packageManager":"pnpm@10.19.0+sha512.c9fc7236e92adf5c8af42fd5bf1612df99c2ceb62f27047032f4720b33f8eacdde311865e91c411f2774f618d82f320808ecb51718bfa82c060c4ba7c76a32b8","devDependencies":{"tsup":"^8.5.0","eslint":"^9.38.0","vitest":"^4.0.3","prettier":"^3.6.2","typescript":"5.9.3","@types/node":"^24.9.1","concurrently":"^9.2.1","@vitest/expect":"^4.0.3","@mcous/eslint-config":"^0.7.0","@mcous/prettier-config":"^0.4.0","@mcous/typescript-config":"^0.3.0","@vitest/coverage-istanbul":"^4.0.3"},"peerDependencies":{"vitest":">=0.31.0 <5","@vitest/expect":">=0.31.0 <5"},"peerDependenciesMeta":{"@vitest/expect":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/vitest-when_0.9.0_1761536006809_0.39621787425470356","host":"s3://npm-registry-packages-npm-production"}},"0.10.0":{"name":"vitest-when","version":"0.10.0","keywords":["tdd","testing","mocking"],"author":{"url":"https://michael.cousins.io","name":"Michael Cousins","email":"michael@cousins.io"},"license":"MIT","_id":"vitest-when@0.10.0","maintainers":[{"name":"mcous","email":"michael@cousins.io"}],"homepage":"https://github.com/mcous/vitest-when#readme","bugs":{"url":"https://github.com/mcous/vitest-when/issues"},"dist":{"shasum":"779799538f0d3397fba5192a0d6eb9246459b6c6","tarball":"https://registry.npmjs.org/vitest-when/-/vitest-when-0.10.0.tgz","fileCount":13,"integrity":"sha512-tZiZ3+HR3X+pN1h4484an6/kuPezs/0b7frOikEnHfsPbOLGoiC+8NHRP/CRTAnG9Ccevq5/oGfCNRm/sp2EAw==","signatures":[{"sig":"MEYCIQDePvj21rAlLQzGjf9EfuBiioMSm/oKjoZUcdyGX2EtZQIhAKF1OPClkFNdmnVcJGTt38twS6PcROPu5K6ro1tj/JsB","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vitest-when@0.10.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":79065},"pnpm":{"onlyBuiltDependencies":["esbuild"]},"type":"module","types":"./dist/vitest-when.d.ts","exports":{".":{"types":"./dist/vitest-when.d.ts","import":"./dist/vitest-when.js"}},"gitHead":"6f79ed1fc52c33ea93c9fbf28179b73a9aae389a","scripts":{"all":"concurrently -g pnpm:coverage pnpm:build pnpm:check:*","test":"vitest","build":"tsup --clean --sourcemap --dts --format esm --target node14 src/vitest-when.ts","format":"eslint . --fix && prettier . --write","coverage":"vitest run --coverage","check:lint":"eslint .","check:types":"vitest --typecheck.only --run","check:format":"prettier . --check","build-and-check":"concurrently -g pnpm:build pnpm:check:*"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:47171b75-4065-458a-a9d3-90166b504967"}},"prettier":"@mcous/prettier-config","repository":{"url":"git+https://github.com/mcous/vitest-when.git","type":"git"},"_npmVersion":"11.6.1","description":"Stub behaviors of Vitest mock functions with a small, readable API.","directories":{},"_nodeVersion":"24.11.0","dependencies":{"pretty-format":"^30.2.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"packageManager":"pnpm@10.19.0+sha512.c9fc7236e92adf5c8af42fd5bf1612df99c2ceb62f27047032f4720b33f8eacdde311865e91c411f2774f618d82f320808ecb51718bfa82c060c4ba7c76a32b8","devDependencies":{"tsup":"^8.5.0","eslint":"^9.38.0","vitest":"^4.0.3","prettier":"^3.6.2","typescript":"5.9.3","@types/node":"^24.9.1","concurrently":"^9.2.1","@vitest/expect":"^4.0.3","@mcous/eslint-config":"^0.7.0","@mcous/prettier-config":"^0.4.0","@mcous/typescript-config":"^0.3.0","@vitest/coverage-istanbul":"^4.0.3"},"peerDependencies":{"vitest":">=0.31.0 <5","@vitest/expect":">=0.31.0 <5"},"peerDependenciesMeta":{"@vitest/expect":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/vitest-when_0.10.0_1762903585987_0.7368354898482772","host":"s3://npm-registry-packages-npm-production"}},"0.10.1":{"name":"vitest-when","version":"0.10.1","keywords":["tdd","testing","mocking"],"author":{"url":"https://michael.cousins.io","name":"Michael Cousins","email":"michael@cousins.io"},"license":"MIT","_id":"vitest-when@0.10.1","maintainers":[{"name":"mcous","email":"michael@cousins.io"}],"homepage":"https://github.com/mcous/vitest-when#readme","bugs":{"url":"https://github.com/mcous/vitest-when/issues"},"dist":{"shasum":"adb5b45e52fc52887ba6eb148162245a1ffb3da9","tarball":"https://registry.npmjs.org/vitest-when/-/vitest-when-0.10.1.tgz","fileCount":13,"integrity":"sha512-mhyY23mIP8iKPk4GCEIFf5TMJdErOy9cYhAUKDJI/DjE9RXmhG832Dhm04zE9MO4ySnV9sie4f4jRGjpLXyKLQ==","signatures":[{"sig":"MEUCIQCEHtru8ozm0vFcTYEzJSuqi2cBh0vonBEY8RTaqn80DQIgAQ7TON3f+JjYe1UZg17EmuIMVrH+8bRlFhl3VVj+ISI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vitest-when@0.10.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":76697},"type":"module","types":"./dist/vitest-when.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/vitest-when.d.ts","import":"./dist/vitest-when.js"}},"gitHead":"f7acb04a687ef14019cf4d11c967981336736113","scripts":{"all":"concurrently -g pnpm:coverage pnpm:build pnpm:check:*","test":"vitest --typecheck","build":"tsdown --sourcemap src/vitest-when.ts","format":"eslint . --fix && prettier . --write","coverage":"vitest run --coverage","check:lint":"eslint .","check:format":"prettier . --check","build-and-check":"concurrently -g pnpm:build pnpm:check:*"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:47171b75-4065-458a-a9d3-90166b504967"}},"prettier":"@mcous/prettier-config","repository":{"url":"git+https://github.com/mcous/vitest-when.git","type":"git"},"_npmVersion":"11.17.0","description":"Stub behaviors of Vitest mock functions with a small, readable API.","directories":{},"_nodeVersion":"24.19.0","dependencies":{"pretty-format":"^30.3.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"packageManager":"pnpm@11.25.0+sha512.5cde925b4f075f725eb71fbae18a42ffe784524789f19b61c731cb8721ec28aaee160e01a8d5af4fedb2a42cdbf300efe23db356b0d4a17b4d63e11f8ab7c956","devDependencies":{"eslint":"^10.2.1","tsdown":"^0.21.10","vitest":"^4.1.5","prettier":"^3.8.3","typescript":"6.0.3","@types/node":"^25.6.0","concurrently":"^9.2.1","@vitest/expect":"^4.1.5","@mcous/eslint-config":"^0.9.0","@mcous/prettier-config":"^0.4.0","@mcous/typescript-config":"^0.4.0","@vitest/coverage-istanbul":"^4.1.5"},"peerDependencies":{"vitest":">=0.31.0 <6","@vitest/expect":">=0.31.0 <6"},"peerDependenciesMeta":{"@vitest/expect":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/vitest-when_0.10.1_1788270238978_0.28966490716456117","host":"s3://npm-registry-packages-npm-production"}},"0.10.2":{"name":"vitest-when","version":"0.10.2","keywords":["tdd","testing","mocking"],"author":{"url":"https://michael.cousins.io","name":"Michael Cousins","email":"michael@cousins.io"},"license":"MIT","_id":"vitest-when@0.10.2","maintainers":[{"name":"mcous","email":"michael@cousins.io"}],"homepage":"https://github.com/mcous/vitest-when#readme","bugs":{"url":"https://github.com/mcous/vitest-when/issues"},"dist":{"shasum":"f347eccd6c64c1983c3a02a22b4c22bd50abbfea","tarball":"https://registry.npmjs.org/vitest-when/-/vitest-when-0.10.2.tgz","fileCount":13,"integrity":"sha512-VIaW10y8JICuH52gu1vxlXg068zauz+ruFkfGDsGxUgcXPOqSlDGnReNp1wXfJ3o4m0lYy6BJKrWh34/sgGIbw==","signatures":[{"sig":"MEYCIQD7wDaUi20rqwiarY3qGRZoWn01q9aR73f8JejGGmpmGQIhAP0v3/NquOwPWxV1D82ndCqZo446Kbp9IglVCC789R4b","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vitest-when@0.10.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":76700},"type":"module","types":"./dist/vitest-when.d.mts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/vitest-when.d.mts","import":"./dist/vitest-when.mjs"}},"gitHead":"80035c0e89cb4fda675ced7aeeb07382ec5c715d","scripts":{"all":"concurrently -g pnpm:coverage pnpm:build pnpm:check:*","test":"vitest --typecheck","build":"tsdown --sourcemap src/vitest-when.ts","format":"eslint . --fix && prettier . --write","coverage":"vitest run --coverage","check:lint":"eslint .","check:format":"prettier . --check","build-and-check":"concurrently -g pnpm:build pnpm:check:*"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:47171b75-4065-458a-a9d3-90166b504967"}},"prettier":"@mcous/prettier-config","repository":{"url":"git+https://github.com/mcous/vitest-when.git","type":"git"},"_npmVersion":"11.17.0","description":"Stub behaviors of Vitest mock functions with a small, readable API.","directories":{},"_nodeVersion":"24.19.0","dependencies":{"pretty-format":"^30.3.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"packageManager":"pnpm@11.25.0+sha512.5cde925b4f075f725eb71fbae18a42ffe784524789f19b61c731cb8721ec28aaee160e01a8d5af4fedb2a42cdbf300efe23db356b0d4a17b4d63e11f8ab7c956","devDependencies":{"eslint":"^10.2.1","tsdown":"^0.21.10","vitest":"^4.1.5","prettier":"^3.8.3","typescript":"6.0.3","@types/node":"^25.6.0","concurrently":"^9.2.1","@vitest/expect":"^4.1.5","@mcous/eslint-config":"^0.9.0","@mcous/prettier-config":"^0.4.0","@mcous/typescript-config":"^0.4.0","@vitest/coverage-istanbul":"^4.1.5"},"peerDependencies":{"vitest":">=0.31.0 <6","@vitest/expect":">=0.31.0 <6"},"peerDependenciesMeta":{"@vitest/expect":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/vitest-when_0.10.2_1788446476494_0.2483344059668986","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"vitest-when","version":"1.0.0","description":"Stub behaviors of Vitest mock functions with a small, readable API.","keywords":["tdd","testing","mocking"],"homepage":"https://github.com/mcous/vitest-when#readme","bugs":{"url":"https://github.com/mcous/vitest-when/issues"},"repository":{"type":"git","url":"git+https://github.com/mcous/vitest-when.git"},"license":"MIT","author":{"name":"Michael Cousins","email":"michael@cousins.io","url":"https://michael.cousins.io"},"type":"module","exports":{".":{"types":"./dist/vitest-when.d.mts","import":"./dist/vitest-when.mjs"}},"types":"./dist/vitest-when.d.mts","scripts":{"all":"concurrently -g pnpm:coverage pnpm:build pnpm:check:* && pnpm test:compat","build":"tsdown","build-and-check":"concurrently -g pnpm:build pnpm:check:*","check:format":"prettier . --check","check:lint":"eslint .","check:types":"tsc","coverage":"vitest run --coverage","format":"eslint . --fix && prettier . --write","test":"vitest --typecheck","test:compat":"pnpm build && ./compat/run-all.sh"},"prettier":"@mcous/prettier-config","devDependencies":{"@arethetypeswrong/core":"^0.18.5","@mcous/eslint-config":"^0.9.0","@mcous/prettier-config":"^0.4.0","@mcous/typescript-config":"^0.4.0","@types/node":"^25.6.0","@vitest/coverage-istanbul":"^5.0.0","@vitest/expect":"^5.0.0","@vitest/utils":"^5.0.0","concurrently":"^9.2.1","eslint":"^10.2.1","expect-type":"^1.4.0","prettier":"^3.8.3","publint":"^0.3.24","tsdown":"^0.21.10","typescript":"6.0.3","vitest":"^5.0.0"},"peerDependencies":{"vitest":">=0.31.0 <6"},"engines":{"node":">=18"},"packageManager":"pnpm@11.25.0+sha512.5cde925b4f075f725eb71fbae18a42ffe784524789f19b61c731cb8721ec28aaee160e01a8d5af4fedb2a42cdbf300efe23db356b0d4a17b4d63e11f8ab7c956","publishConfig":{"access":"public","provenance":true},"gitHead":"35e215b3e3246b82fcb17ecde3ead1efe4674f1c","_id":"vitest-when@1.0.0","_nodeVersion":"24.20.0","_npmVersion":"11.19.0","dist":{"integrity":"sha512-JyYmwmcKY3a1quO4PxI2G5wm3uVTQ7N+AjM3at3cWkAj3pvw2PJScDFxXaSqrIKlbC05jvnnj5H5y+z4vOeX5g==","shasum":"154c36a740f21b35bbe3724045a3e5f62e0fb7c9","tarball":"https://registry.npmjs.org/vitest-when/-/vitest-when-1.0.0.tgz","fileCount":14,"unpackedSize":487562,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vitest-when@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEF3/W2/ln7yVRSPk6YFPVEz/UK0IVXQylmYJX49MnH8AiEAn7nNleb/NYnF82tFOvDNUwwbDgKknyR2nKz/q7Gdt9k="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:47171b75-4065-458a-a9d3-90166b504967"}},"directories":{},"maintainers":[{"name":"mcous","email":"michael@cousins.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vitest-when_1.0.0_1788758550983_0.6864641399172611"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-11T00:23:15.949Z","modified":"2026-09-07T05:22:31.456Z","0.1.0":"2023-05-11T00:23:16.178Z","0.1.1":"2023-05-11T03:30:31.880Z","0.1.2":"2023-05-22T20:39:09.617Z","0.2.0":"2023-10-08T19:26:32.550Z","0.3.0":"2023-12-05T01:30:39.118Z","0.3.1":"2024-01-10T14:39:24.370Z","0.4.0":"2024-05-11T16:14:31.176Z","0.4.1":"2024-07-11T03:11:47.896Z","0.5.0":"2024-11-04T16:28:31.534Z","0.6.0":"2025-01-20T17:50:47.214Z","0.6.1":"2025-06-03T14:13:33.107Z","0.6.2":"2025-07-18T13:52:24.842Z","0.7.0":"2025-08-06T20:09:44.111Z","0.8.0":"2025-08-29T13:10:04.264Z","0.8.1":"2025-10-03T10:36:01.062Z","0.9.0":"2025-10-27T03:33:27.039Z","0.10.0":"2025-11-11T23:26:26.186Z","0.10.1":"2026-09-01T13:43:59.108Z","0.10.2":"2026-09-03T14:41:16.641Z","1.0.0":"2026-09-07T05:22:31.129Z"},"bugs":{"url":"https://github.com/mcous/vitest-when/issues"},"author":{"name":"Michael Cousins","email":"michael@cousins.io","url":"https://michael.cousins.io"},"license":"MIT","homepage":"https://github.com/mcous/vitest-when#readme","keywords":["tdd","testing","mocking"],"repository":{"type":"git","url":"git+https://github.com/mcous/vitest-when.git"},"description":"Stub behaviors of Vitest mock functions with a small, readable API.","maintainers":[{"name":"mcous","email":"michael@cousins.io"}],"readme":"# vitest-when\n\n[![npm badge][]][npm]\n[![ci badge][]][ci]\n[![coverage badge][]][coverage]\n\nRead the introductory post: [Better mocks in Vitest][better-mocks]\n\nStub behaviors of [Vitest][] mock functions with a small, readable API. Inspired by [testdouble.js][] and [jest-when][].\n\n```shell\nnpm install --save-dev vitest-when\n```\n\n> [!TIP]\n>\n> Vitest v5 has added native conditional stubbing via [`vi.when`][vitest-conditional-mocking],\n> using the same core API as `vitest-when`.\n>\n> ```ts\n> const stub = vi.fn()\n> vi.when(stub).calledWith('hello').thenReturn('world')\n> ```\n>\n> The `vitest-when` package is now in maintenance mode, continuing to support\n> older versions of Vitest. New projects should use `vitest@>=5` and `vi.when` directly.\n\n[better-mocks]: https://michael.cousins.io/articles/2023-06-30-better-stubs/\n[vitest]: https://vitest.dev/\n[vitest-conditional-mocking]: https://vitest.dev/guide/recipes/conditional-mocking.html\n[testdouble.js]: https://github.com/testdouble/testdouble.js/\n[jest-when]: https://github.com/timkindberg/jest-when\n[npm]: https://npmjs.org/vitest-when\n[npm badge]: https://img.shields.io/npm/v/vitest-when.svg?style=flat-square\n[ci]: https://github.com/mcous/vitest-when/actions\n[ci badge]: https://img.shields.io/github/actions/workflow/status/mcous/vitest-when/ci.yaml?style=flat-square\n[coverage]: https://coveralls.io/github/mcous/vitest-when\n[coverage badge]: https://img.shields.io/coverallsCoverage/github/mcous/vitest-when?style=flat-square\n\n## Usage\n\nCreate [stubs][] - fake objects that have pre-configured responses to matching arguments - from [Vitest's mock functions][]. With vitest-when, your stubs are:\n\n- Easy to read\n- Hard to misconfigure, especially when using TypeScript\n\nWrap your `vi.fn()` mock - or a function imported from a `vi.mock`'d module - in [`when`][when], match on a set of arguments using [`calledWith`][called-with], and configure a behavior\n\n- [`.thenReturn()`][then-return] - Return a value\n- [`.thenResolve()`][then-resolve] - Resolve a `Promise`\n- [`.thenThrow()`][then-throw] - Throw an error\n- [`.thenReject()`][then-reject] - Reject a `Promise`\n- [`.thenDo()`][then-do] - Trigger a function\n\nIf the stub is called with arguments that match `calledWith`, the configured behavior will occur. If the arguments do not match, the stub will no-op and return `undefined`.\n\n```ts\nimport { vi, test, afterEach } from 'vitest'\nimport { when } from 'vitest-when'\n\nafterEach(() => {\n  vi.resetAllMocks()\n})\n\ntest('stubbing with vitest-when', () => {\n  const stub = vi.fn()\n\n  when(stub).calledWith(1, 2, 3).thenReturn(4)\n  when(stub).calledWith(4, 5, 6).thenReturn(7)\n\n  let result = stub(1, 2, 3)\n  expect(result).toBe(4)\n\n  result = stub(4, 5, 6)\n  expect(result).toBe(7)\n\n  result = stub(7, 8, 9)\n  expect(result).toBe(undefined)\n})\n```\n\nYou should call `vi.resetAllMocks()` in your suite's `afterEach` hook to remove the implementation added by `when`. You can also set Vitest's [`mockReset`](https://vitest.dev/config/#mockreset) config to `true` instead of using `afterEach`.\n\n[vitest's mock functions]: https://vitest.dev/api/mock.html\n[stubs]: https://en.wikipedia.org/wiki/Test_stub\n[when]: #whenmock-tfunc-options-whenoptions-stubwrappertfunc\n[called-with]: #calledwithargs-parameterstfunc-stubtfunc\n[then-return]: #thenreturnvalue-treturn---mocktfunc\n[then-resolve]: #thenresolvevalue-treturn---mocktfunc\n[then-throw]: #thenthrowerror-unknown---mocktfunc\n[then-reject]: #thenrejecterror-unknown---mocktfunc\n[then-do]: #thendocallback-args-targs--treturn---mocktfunc\n\n### Why not vanilla Vitest mocks?\n\nVitest's mock functions are powerful, but have an overly permissive API, inherited from Jest. Vanilla `vi.fn()` mock functions are difficult to use well and easy to use poorly.\n\n- Mock usage is spread across the [arrange and assert][] phases of your test, with \"act\" in between, making the test harder to read.\n- If you forget the `expect(...).toHaveBeenCalledWith(...)` step, the test will pass even if the mock is called incorrectly.\n- `expect(...).toHaveBeenCalledWith(...)` is not type-checked, as of Vitest `0.31.0`.\n\n```ts\n// arrange\nconst stub = vi.fn()\nstub.mockReturnValue('world')\n\n// act\nconst result = stub('hello')\n\n// assert\nexpect(stub).toHaveBeenCalledWith('hello')\nexpect(result).toBe('world')\n```\n\nIn contrast, when using vitest-when stubs:\n\n- All stub configuration happens in the \"arrange\" phase of your test.\n- You cannot forget `calledWith`.\n- `calledWith` and `thenReturn` (et. al.) are fully type-checked.\n\n```ts\n// arrange\nconst stub = vi.fn()\nwhen(stub).calledWith('hello').thenReturn('world')\n\n// act\nconst result = stub('hello')\n\n// assert\nexpect(result).toBe('world')\n```\n\n[arrange and assert]: https://github.com/testdouble/contributing-tests/wiki/Arrange-Act-Assert\n\n### Example\n\nSee the [./example](./example) directory for example usage.\n\n```ts\n// meaning-of-life.test.ts\nimport { vi, describe, afterEach, it, expect } from 'vitest'\nimport { when } from 'vitest-when'\n\nimport * as deepThought from './deep-thought.ts'\nimport * as earth from './earth.ts'\nimport * as subject from './meaning-of-life.ts'\n\nvi.mock('./deep-thought.ts')\nvi.mock('./earth.ts')\n\ndescribe('get the meaning of life', () => {\n  afterEach(() => {\n    vi.resetAllMocks()\n  })\n\n  it('should get the answer and the question', async () => {\n    when(deepThought.calculateAnswer).calledWith().thenResolve(42)\n    when(earth.calculateQuestion).calledWith(42).thenResolve(\"What's 6 by 9?\")\n\n    const result = await subject.createMeaning()\n\n    expect(result).toEqual({ question: \"What's 6 by 9?\", answer: 42 })\n  })\n})\n```\n\n```ts\n// meaning-of-life.ts\nimport { calculateAnswer } from './deep-thought.ts'\nimport { calculateQuestion } from './earth.ts'\n\nexport interface Meaning {\n  question: string\n  answer: number\n}\n\nexport const createMeaning = async (): Promise<Meaning> => {\n  const answer = await calculateAnswer()\n  const question = await calculateQuestion(answer)\n\n  return { question, answer }\n}\n```\n\n```ts\n// deep-thought.ts\nexport const calculateAnswer = async (): Promise<number> => {\n  throw new Error(`calculateAnswer() not implemented`)\n}\n```\n\n```ts\n// earth.ts\nexport const calculateQuestion = async (answer: number): Promise<string> => {\n  throw new Error(`calculateQuestion(${answer}) not implemented`)\n}\n```\n\n## API\n\n### `when(mock: TFunc, options?: WhenOptions): StubWrapper<TFunc>`\n\nConfigures a `vi.fn()` or `vi.spyOn()` mock function to act as a vitest-when stub. Adds an implementation to the function that initially no-ops, and returns an API to configure behaviors for given arguments using [`.calledWith(...)`][called-with]\n\n```ts\nimport { vi } from 'vitest'\nimport { when } from 'vitest-when'\n\nconst mock = vi.fn()\n\nwhen(mock)\n\nexpect(mock()).toBe(undefined)\n```\n\n#### Options\n\n```ts\nimport type { WhenOptions } from 'vitest-when'\n```\n\n| option            | default | type    | description                                        |\n| ----------------- | ------- | ------- | -------------------------------------------------- |\n| `ignoreExtraArgs` | `false` | boolean | Ignore extra arguments when matching arguments     |\n| `times`           | N/A     | integer | Only trigger configured behavior a number of times |\n\n### `.calledWith(...args: Parameters<TFunc>): Stub<TFunc>`\n\nCreate a stub that matches a given set of arguments which you can configure with different behaviors using methods like [`.thenReturn(...)`][then-return].\n\n```ts\nconst mock = when(vi.fn()).calledWith('hello').thenReturn('world')\n\nexpect(mock('hello')).toEqual('world')\n```\n\nWhen a call to a mock uses arguments that match those given to `calledWith`, a configured behavior will be triggered. All arguments must match, but you can use Vitest's [asymmetric matchers][] to loosen the stubbing:\n\n```ts\nconst mock = when(vi.fn()).calledWith(expect.any(String)).thenReturn('world')\n\nexpect(mock('hello')).toEqual('world')\nexpect(mock('anything')).toEqual('world')\n```\n\nIf `calledWith` is used multiple times, the last configured stubbing will be used.\n\n```ts\nwhen(mock).calledWith('hello').thenReturn('world')\nexpect(mock('hello')).toEqual('world')\nwhen(mock).calledWith('hello').thenReturn('goodbye')\nexpect(mock('hello')).toEqual('goodbye')\n```\n\n[asymmetric matchers]: https://vitest.dev/api/expect.html#expect-anything\n\n#### Types of overloaded functions\n\nDue to fundamental limitations in TypeScript, `when()` will always use the _last_ overload to infer function parameters and return types. You can use the `TFunc` type parameter of `when()` to manually select a different overload entry:\n\n```ts\nfunction overloaded(): null\nfunction overloaded(input: number): string\nfunction overloaded(input?: number): string | null {\n  // ...\n}\n\n// Last entry: all good!\nwhen(overloaded).calledWith(42).thenReturn('hello')\n\n// $ts-expect-error: first entry\nwhen(overloaded).calledWith().thenReturn(null)\n\n// Manually specified: all good!\nwhen<() => null>(overloaded).calledWith().thenReturn(null)\n```\n\n#### Fallback\n\nBy default, if arguments do not match, a vitest-when stub will no-op and return `undefined`. You can customize this fallback by configuring your own unconditional behavior on the mock using Vitest's built-in [mock API][].\n\n```ts\nconst mock = when(vi.fn(() => 'you messed up!')))\n  .calledWith('hello')\n  .thenReturn('world')\n\nmock('hello') // \"world\"\nmock('jello') // \"you messed up!\"\n```\n\n[mock API]: https://vitest.dev/api/mock.html\n\n### `.thenReturn(value: TReturn) -> Mock<TFunc>`\n\nWhen the stubbing is satisfied, return `value`\n\n```ts\nconst mock = when(vi.fn()).calledWith('hello').thenReturn('world')\n\nexpect(mock('hello')).toEqual('world')\n```\n\nTo only return a value once, use the `times` option.\n\n```ts\nimport { when } from 'vitest-when'\n\nconst mock = when(vi.fn(), { times: 1 }).calledWith('hello').thenReturn('world')\n\nexpect(mock('hello')).toEqual('world')\nexpect(mock('hello')).toEqual(undefined)\n```\n\nYou may pass several values to `thenReturn` to return different values in succession. If you do not specify `times`, the last value will be latched. Otherwise, each value will be returned the specified number of times.\n\n```ts\nconst mock = when(vi.fn()).calledWith('hello').thenReturn('hi', 'sup?')\n\nexpect(mock('hello')).toEqual('hi')\nexpect(mock('hello')).toEqual('sup?')\nexpect(mock('hello')).toEqual('sup?')\n```\n\nYou can also ignore extra arguments when matching arguments.\n\n```ts\nconst mock = when(vi.fn(), { ignoreExtraArgs: true })\n  .calledWith('hello')\n  .thenReturn('world')\n\nexpect(mock('hello')).toEqual('world')\nexpect(mock('hello', 'jello')).toEqual('world')\n```\n\n### `.thenResolve(value: TReturn) -> Mock<TFunc>`\n\nWhen the stubbing is satisfied, resolve a `Promise` with `value`\n\n```ts\nconst mock = when(vi.fn()).calledWith('hello').thenResolve('world')\n\nawait expect(mock('hello')).resolves.toEqual('world')\n```\n\nTo only resolve a value once, use the `times` option.\n\n```ts\nimport { when } from 'vitest-when'\n\nconst mock = when(vi.fn(), { times: 1 })\n  .calledWith('hello')\n  .thenResolve('world')\n\nawait expect(mock('hello')).resolves.toEqual('world')\nexpect(mock('hello')).toEqual(undefined)\n```\n\nYou may pass several values to `thenResolve` to resolve different values in succession. If you do not specify `times`, the last value will be latched. Otherwise, each value will be resolved the specified number of times.\n\n```ts\nconst mock = when(vi.fn()).calledWith('hello').thenResolve('hi', 'sup?')\n\nawait expect(mock('hello')).resolves.toEqual('hi')\nawait expect(mock('hello')).resolves.toEqual('sup?')\nawait expect(mock('hello')).resolves.toEqual('sup?')\n```\n\n### `.thenThrow(error: unknown) -> Mock<TFunc>`\n\nWhen the stubbing is satisfied, throw `error`.\n\n```ts\nconst mock = when(vi.fn()).calledWith('hello').thenThrow(new Error('oh no'))\n\nexpect(() => mock('hello')).toThrow('oh no')\n```\n\nTo only throw an error only once, use the `times` option.\n\n```ts\nimport { when } from 'vitest-when'\n\nconst mock = when(vi.fn(), { times: 1 })\n  .calledWith('hello')\n  .thenThrow(new Error('oh no'))\n\nexpect(() => mock('hello')).toThrow('oh no')\nexpect(mock('hello')).toEqual(undefined)\n```\n\nYou may pass several values to `thenThrow` to throw different errors in succession. If you do not specify `times`, the last value will be latched. Otherwise, each error will be thrown the specified number of times.\n\n```ts\nconst mock = when(vi.fn())\n  .calledWith('hello')\n  .thenThrow(new Error('oh no'), new Error('this is bad'))\n\nexpect(() => mock('hello')).toThrow('oh no')\nexpect(() => mock('hello')).toThrow('this is bad')\nexpect(() => mock('hello')).toThrow('this is bad')\n```\n\n### `.thenReject(error: unknown) -> Mock<TFunc>`\n\nWhen the stubbing is satisfied, reject a `Promise` with `error`.\n\n```ts\nconst mock = when(vi.fn()).calledWith('hello').thenReject(new Error('oh no'))\n\nawait expect(mock('hello')).rejects.toThrow('oh no')\n```\n\nTo only throw an error only once, use the `times` option.\n\n```ts\nimport { times, when } from 'vitest-when'\n\nconst mock = when(vi.fn(), { times: 1 })\n  .calledWith('hello')\n  .thenReject(new Error('oh no'))\n\nawait expect(mock('hello')).rejects.toThrow('oh no')\nexpect(mock('hello')).toEqual(undefined)\n```\n\nYou may pass several values to `thenReject` to throw different errors in succession. If you do not specify `times`, the last value will be latched. Otherwise, each rejection will be triggered the specified number of times.\n\n```ts\nconst mock = when(vi.fn())\n  .calledWith('hello')\n  .thenReject(new Error('oh no'), new Error('this is bad'))\n\nawait expect(mock('hello')).rejects.toThrow('oh no')\nawait expect(mock('hello')).rejects.toThrow('this is bad')\nawait expect(mock('hello')).rejects.toThrow('this is bad')\n```\n\n### `.thenDo(callback: (...args: TArgs) => TReturn) -> Mock<TFunc>`\n\nWhen the stubbing is satisfied, run `callback` to trigger a side-effect and return its result (if any). `thenDo` is a relatively powerful tool for stubbing complex behaviors, so if you find yourself using `thenDo` often, consider refactoring your code to use more simple interactions! Your future self will thank you.\n\n```ts\nlet called = false\n\nconst mock = when(vi.fn())\n  .calledWith('hello')\n  .thenDo(() => {\n    called = true\n    return 'world'\n  })\n\nexpect(mock('hello')).toEqual('world')\nexpect(called).toEqual(true)\n```\n\nTo only run the callback once, use the `times` option.\n\n```ts\nimport { times, when } from 'vitest-when'\n\nconst mock = when(vi.fn(), { times: 1 })\n  .calledWith('hello')\n  .thenDo(() => 'world')\n\nexpect(mock('hello')).toEqual('world')\nexpect(mock('hello')).toEqual(undefined)\n```\n\nYou may pass several callbacks to `thenDo` to trigger different side-effects in succession. If you do not specify `times`, the last callback will be latched. Otherwise, each callback will be triggered the specified number of times.\n\n```ts\nconst mock = when(vi.fn())\n  .calledWith('hello')\n  .thenDo(\n    () => 'world',\n    () => 'solar system',\n  )\n\nexpect(mock('hello')).toEqual('world')\nexpect(mock('hello')).toEqual('solar system')\n```\n\n### `debug(mock: TFunc, options?: DebugOptions): DebugResult`\n\nLogs and returns information about a mock's stubbing and usage. Useful if a test with mocks is failing and you can't figure out why.\n\n```ts\nimport { when, debug } from 'vitest-when'\n\nconst coolFunc = vi.fn().mockName('coolFunc')\n\nwhen(coolFunc).calledWith(1, 2, 3).thenReturn(123)\nwhen(coolFunc).calledWith(4, 5, 6).thenThrow(new Error('oh no'))\n\nconst result = coolFunc(1, 2, 4)\n\ndebug(coolFunc)\n// `coolFunc()` has:\n// * 2 stubbings with 0 calls\n//   * Called 0 times: `(1, 2, 3) => 123`\n//   * Called 0 times: `(4, 5, 6) => { throw [Error: oh no] }`\n// * 1 unmatched call\n//   * `(1, 2, 4)`\n```\n\n#### `DebugOptions`\n\n```ts\nimport type { DebugOptions } from 'vitest-when'\n```\n\n| option | default | type    | description                            |\n| ------ | ------- | ------- | -------------------------------------- |\n| `log`  | `true`  | boolean | Whether the call to `debug` should log |\n\n#### `DebugResult`\n\n```ts\nimport type { DebugResult, Stubbing, Behavior } from 'vitest-when'\n```\n\n| fields                       | type                                         | description                                                 |\n| ---------------------------- | -------------------------------------------- | ----------------------------------------------------------- |\n| `description`                | `string`                                     | A human-readable description of the stub, logged by default |\n| `name`                       | `string`                                     | The name of the mock, if set by [`mockName`][mockName]      |\n| `stubbings`                  | `Stubbing[]`                                 | The list of configured stub behaviors                       |\n| `stubbings[].args`           | `unknown[]`                                  | The stubbing's arguments to match                           |\n| `stubbings[].behavior`       | `Behavior`                                   | The configured behavior of the stubbing                     |\n| `stubbings[].behavior.type`  | `return`, `throw`, `resolve`, `reject`, `do` | Result type of the stubbing                                 |\n| `stubbings[].behavior.value` | `unknown`                                    | Value for the behavior, if `type` is `return` or `resolve`  |\n| `stubbings[].behavior.error` | `unknown`                                    | Error for the behavior, it `type` is `throw` or `reject`    |\n| `stubbings[].matchedCalls`   | `unknown[][]`                                | Actual calls that matched the stubbing, if any              |\n| `unmatchedCalls`             | `unknown[][]`                                | Actual calls that did not match a stubbing                  |\n\n[mockName]: https://vitest.dev/api/mock.html#mockname\n","readmeFilename":"README.md"}