test(measurements): call the fire-and-forget mock with a starter function

This commit is contained in:
Marc-André Bombeck committed 2026-10-23 16:54:56 +02:00
1 parent cf37f833e8
commit 89b6189206
1 file changed
+2 -1
@@ -57,7 +57,8 @@ vi.mock("@/lib/logging/context", async (importOriginal) => ({
annotate: vi.fn(),
}));
vi.mock("@/lib/logging/fire-and-forget", () => ({
fireAndForget: (promise: Promise<unknown>) => void promise.catch(() => {}),
fireAndForget: (start: () => Promise<unknown>) =>
void start().catch(() => {}),
}));
vi.mock("@/lib/crypto/note-cipher", () => ({
encryptNote: vi.fn(() => null),