From 72f0eccf277f884fa698ab13e3a6921175915790 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 24 Sep 2026 10:00:05 +0200 Subject: [PATCH] test(weight): read the target cases through the status note table --- src/lib/insights/__tests__/weight-status.test.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/lib/insights/__tests__/weight-status.test.ts b/src/lib/insights/__tests__/weight-status.test.ts index c918c7bd5..3e230f469 100644 --- a/src/lib/insights/__tests__/weight-status.test.ts +++ b/src/lib/insights/__tests__/weight-status.test.ts @@ -409,12 +409,8 @@ describe("generateWeightStatusForUser — judged against the stored target (#100 vi.mocked(prisma.user.findUnique).mockResolvedValue({ thresholdsJson, } as never); - vi.mocked(prisma.auditLog.findFirst).mockResolvedValue(null); vi.mocked(prisma.measurement.findMany).mockResolvedValue(records as never); vi.mocked(prisma.moodEntry.findMany).mockResolvedValue([] as never); - vi.mocked(prisma.auditLog.create).mockResolvedValue({ - createdAt: new Date(), - } as never); const captured: { userPrompt: string | null } = { userPrompt: null }; stubCompletion('{"summary":"OK"}', captured); await generateWeightStatusForUser("user-1", { locale: "en" });