test(sync): give the module-gate double the mirror walk's token lookup

The walk now asks the token table first; the route test's Prisma double
answers it with no switched token.
This commit is contained in:
Marc-André Bombeck committed 2026-10-25 00:51:32 +02:00
1 parent cc284c4307
commit 0f9ee08a48
1 file changed
+2
@@ -22,6 +22,8 @@ vi.mock("@/lib/modules/gate", () => ({ isModuleEnabled: vi.fn() }));
vi.mock("@/lib/db", () => ({
prisma: {
measurement: { findMany: vi.fn() },
// The mirror walk's token lookup: no token switched, so no walk.
apiToken: { findMany: vi.fn(async () => []) },
moodEntry: { findMany: vi.fn() },
medicationIntakeEvent: { findMany: vi.fn() },
cycleDayLog: { findMany: vi.fn() },