From d44b875ec62d81fe854c59695d4e7b56c87bfdba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sun, 27 Sep 2026 11:37:51 +0200 Subject: [PATCH] test(restore): stub the reading count the restore budget now reads --- src/lib/export/__tests__/restore-backup-round-trip.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/export/__tests__/restore-backup-round-trip.test.ts b/src/lib/export/__tests__/restore-backup-round-trip.test.ts index 7bc61b871..95cb9c53a 100644 --- a/src/lib/export/__tests__/restore-backup-round-trip.test.ts +++ b/src/lib/export/__tests__/restore-backup-round-trip.test.ts @@ -35,6 +35,7 @@ vi.mock("@/lib/db", () => ({ prisma: { dataBackup: { findUnique: vi.fn() }, user: { findUnique: vi.fn() }, + measurement: { count: vi.fn().mockResolvedValue(0) }, $transaction: mocks.transaction, }, toJson: (value: T) => value,