(ws: MockWS, callIndex = 0)
| 91 | // Mock DurableObjectState (this.ctx) |
| 92 | // --------------------------------------------------------------------------- |
| 93 | |
| 94 | /** In-memory Map-backed KV fake for ctx.storage (put/get/delete/list). */ |
| 95 | function makeStorageFake() { |
| 96 | const store = new Map<string, unknown>(); |
| 97 | return { |
| 98 | store, |
| 99 | kv: { |
| 100 | get: (key: string) => store.get(key), |
no outgoing calls
no test coverage detected