Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. 🫖 Status page with uptime monitoring & API monitoring as code 🫖 openstatus.dev
Something went wrong. Try again.
1234567891011121314151617181920// Test double for @openstatus/upstash, swapped in via test.importmap.json.// Keeps tests off a real Upstash Redis instance.const noopRedis = { get: () => Promise.resolve(null), set: () => Promise.resolve("OK"), del: () => Promise.resolve(0), getdel: () => Promise.resolve(null), incr: () => Promise.resolve(1), expire: () => Promise.resolve(1), eval: () => Promise.resolve([1, 60 * 60 * 24]),};
export const redis = noopRedis;
export const Redis = { fromEnv() { return noopRedis; },};