Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -60,4 +60,18 @@ describe("createSharedStore — auto adapter selection builds a RedisAdapter", (
expect(store.adapter).toBeInstanceOf(RedisAdapter);
await store.close();
});
test("fails closed in production when REDIS_URL is missing", () => {
vi.stubEnv("NODE_ENV", "production");
vi.stubEnv("REDIS_URL", "");
expect(() => createSharedStore({ namespace: "demo" })).toThrow(/REDIS_URL is required in production/);
});
test("still permits an explicitly injected adapter in production tests", async () => {
vi.stubEnv("NODE_ENV", "production");
vi.stubEnv("REDIS_URL", "");
const store = createSharedStore({ namespace: "demo", adapter: new MemoryAdapter() });
expect(store.adapter).toBeInstanceOf(MemoryAdapter);
await store.close();
});
});