test(gateway): restore agent request route mock

This commit is contained in:
Ayaan Zaidi 2026-03-16 17:16:48 +05:30
parent 8b438a308b
commit ccba943738
No known key found for this signature in database

View File

@ -59,6 +59,13 @@ vi.mock("../infra/device-identity.js", () => ({
}));
vi.mock("./session-utils.js", () => ({
loadSessionEntry: vi.fn((sessionKey: string) => buildSessionLookup(sessionKey)),
migrateAndPruneGatewaySessionStoreKey: vi.fn(
({ key, store }: { key: string; store: Record<string, unknown> }) => ({
target: { canonicalKey: key, storeKeys: [key] },
primaryKey: key,
entry: store[key],
}),
),
pruneLegacyStoreKeys: vi.fn(),
resolveGatewaySessionStoreTarget: vi.fn(({ key }: { key: string }) => ({
canonicalKey: key,