{"_id":"@bota-apps/mocks","_rev":"8-7aba0543799e8dbe63cd3effa4c20939","name":"@bota-apps/mocks","dist-tags":{"latest":"0.3.1"},"versions":{"0.1.1":{"name":"@bota-apps/mocks","version":"0.1.1","author":{"name":"bota-apps"},"license":"MIT","_id":"@bota-apps/mocks@0.1.1","maintainers":[{"name":"bota-apps","email":"imusema.hassen@icloud.com"}],"homepage":"https://github.com/bota-apps/packages/tree/main/mocks#readme","bugs":{"url":"https://github.com/bota-apps/packages/issues"},"dist":{"shasum":"3f8d1f4bceccc28a51a88d0f7da6acd27e2b0bab","tarball":"https://registry.npmjs.org/@bota-apps/mocks/-/mocks-0.1.1.tgz","fileCount":15,"integrity":"sha512-RKevXVnONhzIoAc2KTMzXyot4vzVZiwXXHz0NNCrz3YNibTi7ldNpdB8SG1ctCWHuvL62dHl84jPZS82OS15dQ==","signatures":[{"sig":"MEYCIQC8+2UYb1Q9reKp9+RiOvavwQxa7X/n30LLLuED6Zv7IwIhAM7DE9LUTmcIIHmAWWf01lLyPuEU1sUyYx1GWKRC+JkB","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9506},"main":"./dist/index.js","type":"module","_from":"file:bota-apps-mocks-0.1.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"rm -rf dist && tsc && node ../scripts/fixExtensions.mjs","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"bota-apps","email":"imusema.hassen@icloud.com"},"_resolved":"/private/var/folders/wp/6cc4gkfd481b73439xdrv4wm0000gn/T/46455d195957878356cf490a4491f298/bota-apps-mocks-0.1.1.tgz","_integrity":"sha512-RKevXVnONhzIoAc2KTMzXyot4vzVZiwXXHz0NNCrz3YNibTi7ldNpdB8SG1ctCWHuvL62dHl84jPZS82OS15dQ==","repository":{"url":"git+https://github.com/bota-apps/packages.git","type":"git","directory":"mocks"},"_npmVersion":"10.9.8","description":"In-memory test/story doubles for @bota-apps packages, organized by module (./auth, …). Every mock conforms to the real client type it stands in for.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"@bota-apps/types":"^0.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/mocks_0.1.1_1783072589411_0.2896657429174798","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@bota-apps/mocks","version":"0.1.2","author":{"name":"bota-apps"},"license":"MIT","_id":"@bota-apps/mocks@0.1.2","maintainers":[{"name":"bota-apps","email":"imusema.hassen@icloud.com"}],"homepage":"https://github.com/bota-apps/packages/tree/main/mocks#readme","bugs":{"url":"https://github.com/bota-apps/packages/issues"},"dist":{"shasum":"8d9cc660b0f33df5335401194aed71537592e16a","tarball":"https://registry.npmjs.org/@bota-apps/mocks/-/mocks-0.1.2.tgz","fileCount":15,"integrity":"sha512-RJyHCJ4CJVvNSNRlUoD6OuxVRq19PBkAP7gl4vavCpi4xyxLseLxr8B/Ex4OmPLr4wiHPAPpEOoCIFuFGvXIeA==","signatures":[{"sig":"MEYCIQDxfhyyFQoNH8IhXCK6sxT/Rb7SiEHh8ophEA4irCDnMAIhAOphZCRAphQUZjPXYMlRwdHcwrSiGmQrP9eXFoVRM1FL","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9506},"main":"./dist/index.js","type":"module","_from":"file:bota-apps-mocks-0.1.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"rm -rf dist && tsc && node ../scripts/fixExtensions.mjs","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:dd05dc6d-2ab5-4689-a252-1570a16462f2"}},"_resolved":"/tmp/d58a2035362173113e307dd2b08fa773/bota-apps-mocks-0.1.2.tgz","_integrity":"sha512-RJyHCJ4CJVvNSNRlUoD6OuxVRq19PBkAP7gl4vavCpi4xyxLseLxr8B/Ex4OmPLr4wiHPAPpEOoCIFuFGvXIeA==","repository":{"url":"git+https://github.com/bota-apps/packages.git","type":"git","directory":"mocks"},"_npmVersion":"11.18.0","description":"In-memory test/story doubles for @bota-apps packages, organized by module (./auth, …). Every mock conforms to the real client type it stands in for.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"@bota-apps/types":"^0.6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/mocks_0.1.2_1783079408228_0.10128766904095321","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@bota-apps/mocks","version":"0.1.3","author":{"name":"bota-apps"},"license":"MIT","_id":"@bota-apps/mocks@0.1.3","maintainers":[{"name":"bota-apps","email":"imusema.hassen@icloud.com"}],"homepage":"https://github.com/bota-apps/packages/tree/main/mocks#readme","bugs":{"url":"https://github.com/bota-apps/packages/issues"},"dist":{"shasum":"3e766d74e2f8582fd75fe665047b8dd74b6aa8d5","tarball":"https://registry.npmjs.org/@bota-apps/mocks/-/mocks-0.1.3.tgz","fileCount":15,"integrity":"sha512-YReJ1DJnksHVGSAM5sZejVre22XLLyCQdidnsQiLT75x/ThBwLm8+6XHgk9SGefONOoKTaWM0dxf/IXnISwcAg==","signatures":[{"sig":"MEUCIFlAAILJSESpnjMPZuFb1eOMITg7kTEw0tAlO1oYZkUaAiEAkhfx3XGju5dle8zYO3CWA97AZckyyZSu9oxH4MpwZFA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9506},"main":"./dist/index.js","type":"module","_from":"file:bota-apps-mocks-0.1.3.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"rm -rf dist && tsc && node ../scripts/fixExtensions.mjs","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:dd05dc6d-2ab5-4689-a252-1570a16462f2"}},"_resolved":"/tmp/4646987e63f4218a26fb1660758fb004/bota-apps-mocks-0.1.3.tgz","_integrity":"sha512-YReJ1DJnksHVGSAM5sZejVre22XLLyCQdidnsQiLT75x/ThBwLm8+6XHgk9SGefONOoKTaWM0dxf/IXnISwcAg==","repository":{"url":"git+https://github.com/bota-apps/packages.git","type":"git","directory":"mocks"},"_npmVersion":"11.18.0","description":"In-memory test/story doubles for @bota-apps packages, organized by module (./auth, …). Every mock conforms to the real client type it stands in for.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"@bota-apps/types":"^0.7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/mocks_0.1.3_1783113181263_0.8812242579559941","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@bota-apps/mocks","version":"0.1.4","author":{"name":"bota-apps"},"license":"MIT","_id":"@bota-apps/mocks@0.1.4","maintainers":[{"name":"bota-apps","email":"imusema.hassen@icloud.com"}],"homepage":"https://github.com/bota-apps/packages/tree/main/mocks#readme","bugs":{"url":"https://github.com/bota-apps/packages/issues"},"dist":{"shasum":"3476835dcf8b5456e66efd6538cada92405e24a1","tarball":"https://registry.npmjs.org/@bota-apps/mocks/-/mocks-0.1.4.tgz","fileCount":15,"integrity":"sha512-01ShHGaFXXIsKO2cU2vH/seA92IP2s5aMSdQu8nu8cr30385aLRxyoSNHPHFnqsji+BVVr9YKZKwoa+E34u46A==","signatures":[{"sig":"MEUCIQDOGCCayzbeMC/VvYjLzzUVwT6pLyKMnwEXzwzPMNuT4QIgfQWCOS3ycxfM+jfdmo7X8KjNJtU/Oth3E3erRjSGf80=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9506},"main":"./dist/index.js","type":"module","_from":"file:bota-apps-mocks-0.1.4.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"rm -rf dist && tsc && node ../scripts/fixExtensions.mjs","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:dd05dc6d-2ab5-4689-a252-1570a16462f2"}},"_resolved":"/tmp/ec1de490c354de6679a9c0800ed1317c/bota-apps-mocks-0.1.4.tgz","_integrity":"sha512-01ShHGaFXXIsKO2cU2vH/seA92IP2s5aMSdQu8nu8cr30385aLRxyoSNHPHFnqsji+BVVr9YKZKwoa+E34u46A==","repository":{"url":"git+https://github.com/bota-apps/packages.git","type":"git","directory":"mocks"},"_npmVersion":"11.18.0","description":"In-memory test/story doubles for @bota-apps packages, organized by module (./auth, …). Every mock conforms to the real client type it stands in for.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"@bota-apps/types":"^0.8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/mocks_0.1.4_1783124914262_0.5108723783080724","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@bota-apps/mocks","version":"0.1.5","author":{"name":"bota-apps"},"license":"MIT","_id":"@bota-apps/mocks@0.1.5","maintainers":[{"name":"bota-apps","email":"imusema.hassen@icloud.com"}],"homepage":"https://github.com/bota-apps/packages/tree/main/mocks#readme","bugs":{"url":"https://github.com/bota-apps/packages/issues"},"dist":{"shasum":"b3d8c4e9cbf41766e938e200629c7ca10b6aa8c4","tarball":"https://registry.npmjs.org/@bota-apps/mocks/-/mocks-0.1.5.tgz","fileCount":15,"integrity":"sha512-U6EwHWBDE4hu8ouliXQZgyE5DjTB3mYwJCA52vjqn7+60CKfdCorLalhVgKSm2ZdmDiWt7NBm/KGXREW4JKB6Q==","signatures":[{"sig":"MEQCIFJdof3g6c8rfw49J/G0xwVeU+SVfXEjALqWqcqtl/eMAiA/gUAEJz+RcbOyAopkMIKOfkzXkwbB6MTn4daFrH/y0Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9507},"main":"./dist/index.js","type":"module","_from":"file:bota-apps-mocks-0.1.5.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"rm -rf dist && tsc && node ../scripts/fixExtensions.mjs","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:dd05dc6d-2ab5-4689-a252-1570a16462f2"}},"_resolved":"/tmp/a9f50c175d4cc15e197afcd285ff902e/bota-apps-mocks-0.1.5.tgz","_integrity":"sha512-U6EwHWBDE4hu8ouliXQZgyE5DjTB3mYwJCA52vjqn7+60CKfdCorLalhVgKSm2ZdmDiWt7NBm/KGXREW4JKB6Q==","repository":{"url":"git+https://github.com/bota-apps/packages.git","type":"git","directory":"mocks"},"_npmVersion":"11.18.0","description":"In-memory test/story doubles for @bota-apps packages, organized by module (./auth, …). Every mock conforms to the real client type it stands in for.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"@bota-apps/types":"^0.10.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/mocks_0.1.5_1783306214217_0.7147143784594361","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@bota-apps/mocks","version":"0.2.0","author":{"name":"bota-apps"},"license":"MIT","_id":"@bota-apps/mocks@0.2.0","maintainers":[{"name":"bota-apps","email":"imusema.hassen@icloud.com"}],"homepage":"https://github.com/bota-apps/packages/tree/main/mocks#readme","bugs":{"url":"https://github.com/bota-apps/packages/issues"},"dist":{"shasum":"5494e94289f82de13441d4f1e0acc57f5db147ae","tarball":"https://registry.npmjs.org/@bota-apps/mocks/-/mocks-0.2.0.tgz","fileCount":23,"integrity":"sha512-NURIAOhU8EsbVrl5xTcXqP1qTeDZbLzC0AymZo7uJuUV42j/fr6zazgJs7NbELEe4jc+knohlN5sC0Ur0dyjVw==","signatures":[{"sig":"MEYCIQCiWwUV1BxQxpqr04hXX35f6bfN3SSecTYkanNrEyR9HgIhAJN48rp0FBuKiU9hP7scux7w1aktdUHAtJMzAjGpu1uH","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17975},"main":"./dist/index.js","type":"module","_from":"file:bota-apps-mocks-0.2.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"rm -rf dist && tsc && node ../scripts/fixExtensions.mjs","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:dd05dc6d-2ab5-4689-a252-1570a16462f2"}},"_resolved":"/tmp/3b51489e24b8bba57adf415feb1b3ccd/bota-apps-mocks-0.2.0.tgz","_integrity":"sha512-NURIAOhU8EsbVrl5xTcXqP1qTeDZbLzC0AymZo7uJuUV42j/fr6zazgJs7NbELEe4jc+knohlN5sC0Ur0dyjVw==","repository":{"url":"git+https://github.com/bota-apps/packages.git","type":"git","directory":"mocks"},"_npmVersion":"11.18.0","description":"In-memory test/story doubles for @bota-apps packages, organized by module (./auth, …). Every mock conforms to the real client type it stands in for.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"graphql":"^16.9.0","graphql-request":"^7.1.2","@bota-apps/types":"^0.10.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/mocks_0.2.0_1783308518078_0.08967425625820247","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@bota-apps/mocks","version":"0.3.0","author":{"name":"bota-apps"},"license":"MIT","_id":"@bota-apps/mocks@0.3.0","maintainers":[{"name":"bota-apps","email":"imusema.hassen@icloud.com"}],"homepage":"https://github.com/bota-apps/packages/tree/main/mocks#readme","bugs":{"url":"https://github.com/bota-apps/packages/issues"},"dist":{"shasum":"0e49286c770909f4e6cae13c422941ccbbfc412a","tarball":"https://registry.npmjs.org/@bota-apps/mocks/-/mocks-0.3.0.tgz","fileCount":23,"integrity":"sha512-eBuLCKCdGAo0+w6P3xCSg7f95mvEPN/xsrI4sKp4wXGJc8QItLELd2IuzH3bJbpCDTRbv9cC2fQNPYJdfOIh2g==","signatures":[{"sig":"MEUCIQCijMJSzI84rdyRY4Qy9BPU6i7sc6iV8ovR55LudcIjvwIgU286PXNtM5lP3VWDFhuSXqyw94cgbHxqami6iVT+7tg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bota-apps%2fmocks@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":23144},"main":"./dist/index.js","type":"module","_from":"file:bota-apps-mocks-0.3.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"rm -rf dist && tsc && node ../scripts/fixExtensions.mjs","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:57da25c6-775b-4ff6-b985-4986c90e8fe9"}},"_resolved":"/tmp/cb2152448fb032f753c8b485b90d1ef2/bota-apps-mocks-0.3.0.tgz","_integrity":"sha512-eBuLCKCdGAo0+w6P3xCSg7f95mvEPN/xsrI4sKp4wXGJc8QItLELd2IuzH3bJbpCDTRbv9cC2fQNPYJdfOIh2g==","repository":{"url":"git+https://github.com/bota-apps/packages.git","type":"git","directory":"mocks"},"_npmVersion":"11.18.0","description":"In-memory test/story doubles for @bota-apps packages, organized by module (./auth, …). Every mock conforms to the real client type it stands in for.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"graphql":"^16.9.0","graphql-request":"^7.1.2","@bota-apps/types":"^0.10.3","@bota-apps/gql-client":"^0.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/mocks_0.3.0_1784444895794_0.308127873474618","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@bota-apps/mocks","version":"0.3.1","description":"In-memory test/story doubles for @bota-apps packages, organized by module (./auth, …). Every mock conforms to the real client type it stands in for.","license":"MIT","author":{"name":"bota-apps"},"type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"repository":{"type":"git","url":"git+https://github.com/bota-apps/packages.git","directory":"mocks"},"homepage":"https://github.com/bota-apps/packages/tree/main/mocks#readme","bugs":{"url":"https://github.com/bota-apps/packages/issues"},"publishConfig":{"access":"public"},"dependencies":{"graphql":"^16.9.0","graphql-request":"^7.1.2","@bota-apps/gql-client":"^0.3.0","@bota-apps/types":"^0.11.0"},"devDependencies":{"typescript":"^5.8.3"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"build":"rm -rf dist && tsc && node ../scripts/fixExtensions.mjs","typecheck":"tsc --noEmit","clean":"rm -rf dist"},"_id":"@bota-apps/mocks@0.3.1","_integrity":"sha512-OcNKNg8cBAUvVFWZACFFiP8AmigMA+2EIs3QZ6myGZa5OpLdLH54kmNtFx26SABYIySbFU6qcgS+DN2Ghw3cXA==","_resolved":"/tmp/2585a2a5cb1b89a98d1ee8233c00ae3e/bota-apps-mocks-0.3.1.tgz","_from":"file:bota-apps-mocks-0.3.1.tgz","_nodeVersion":"22.23.1","_npmVersion":"11.18.0","dist":{"integrity":"sha512-OcNKNg8cBAUvVFWZACFFiP8AmigMA+2EIs3QZ6myGZa5OpLdLH54kmNtFx26SABYIySbFU6qcgS+DN2Ghw3cXA==","shasum":"0d1d3864ca6a733f588a020a16e16df00c258919","tarball":"https://registry.npmjs.org/@bota-apps/mocks/-/mocks-0.3.1.tgz","fileCount":23,"unpackedSize":23144,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bota-apps%2fmocks@0.3.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDtWFHEKWyK4J+q8Td1z9vvcrNPjQ/HLcVbV/jtIVdK6QIgf1H5U1eDwSIfoIuZv3rzjtkDrk89xDgYNihRvl6gZaA="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:57da25c6-775b-4ff6-b985-4986c90e8fe9"}},"directories":{},"maintainers":[{"name":"bota-apps","email":"imusema.hassen@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mocks_0.3.1_1784780386013_0.6359262706987299"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-03T09:56:29.235Z","modified":"2026-07-23T04:19:46.466Z","0.1.1":"2026-07-03T09:56:29.554Z","0.1.2":"2026-07-03T11:50:08.385Z","0.1.3":"2026-07-03T21:13:01.392Z","0.1.4":"2026-07-04T00:28:34.397Z","0.1.5":"2026-07-06T02:50:14.341Z","0.2.0":"2026-07-06T03:28:38.218Z","0.3.0":"2026-07-19T07:08:15.945Z","0.3.1":"2026-07-23T04:19:46.138Z"},"bugs":{"url":"https://github.com/bota-apps/packages/issues"},"author":{"name":"bota-apps"},"license":"MIT","homepage":"https://github.com/bota-apps/packages/tree/main/mocks#readme","repository":{"type":"git","url":"git+https://github.com/bota-apps/packages.git","directory":"mocks"},"description":"In-memory test/story doubles for @bota-apps packages, organized by module (./auth, …). Every mock conforms to the real client type it stands in for.","maintainers":[{"name":"bota-apps","email":"imusema.hassen@icloud.com"}],"readme":"# @bota-apps/mocks\n\nIn-memory doubles for tests and stories, one directory per module they stand in\nfor. Every mock returns the **real** client type — `createMockAuthClient`\nreturns `AuthClient`, `createMockGraphQLClient` returns a real `graphql-request`\n`GraphQLClient` — so it can be handed to anything that accepts the production\nclient, with no cast.\n\nTwo override models, on every mock:\n\n- **Behavioral options** seed the common cases (a starting user, a schema to\n  execute against).\n- **`overrides`** is the escape hatch: a `Partial<T>` of the real client shape,\n  applied **last**. Override one member (make `refresh` reject, spy on a call) and\n  keep the faithful default for the rest — or pass every member for a full\n  replacement. Because it's typed against the real client, an override that\n  doesn't match the shape is a compile error.\n\n## `createMockAuthClient({ user, state, loginUrl, resolveSwitch, overrides })`\n\nAn in-memory `AuthClient` (no fetch, no navigation). Pass `resolveSwitch` to\nsimulate how the API-owned user changes when `switchOrganization` re-resolves the\nsession. `requireSession` resolves even when unauthenticated (it cannot\nnavigate) — assert on state instead.\n\n```ts\nconst auth = createMockAuthClient({ user });\nconst flaky = createMockAuthClient({\n  user,\n  overrides: { refresh: () => Promise.reject(new Error(\"offline\")) },\n});\n```\n\n## `createMockGraphQLClient({ schema, rootValue, contextValue, endpoint, overrides })`\n\nA real `SubscribableGraphQLClient` (the exact type `createGraphQLClient`\nreturns) whose `fetch` is swapped for an in-process executor that runs each\noperation against `schema` (pass the app's in-memory schema — e.g. the one the\nmock backend is built from). Tests exercise the real generated documents\nagainst the real resolvers, not per-test response stubs. `contextValue` may be\na factory to derive per-request context (e.g. an authenticated viewer);\nsubscriptions resolve it once per `subscribe` call.\n\n`subscribe` runs the schema's real subscription resolvers in-process and\nmirrors the SSE transport's observable behavior: a subscribe-time failure\narrives as a single error result followed by completion, aborting the signal\nrejects the pending read with an `AbortError`, and every payload crosses a\nJSON boundary — the same shape a result has after the wire.\n\n```ts\nconst client = createMockGraphQLClient({ schema: mockSchema, rootValue });\nconst data = await client.request(DepartmentsDocument);\n\nfor await (const result of client.subscribe({ query: \"subscription { … }\" })) {\n  // each pushed ExecutionResult, as the hooks would receive it\n}\n```\n","readmeFilename":"README.md"}