From 07333e17c7df4e166cfb78331d24fb402f7d9133 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Fri, 19 Jun 2026 21:46:28 +0200 Subject: [PATCH] test(insights): type the batch finalize fixture to satisfy lint --- src/lib/insights/__tests__/status-batch.test.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/insights/__tests__/status-batch.test.ts b/src/lib/insights/__tests__/status-batch.test.ts index fdd930c57..e64b86127 100644 --- a/src/lib/insights/__tests__/status-batch.test.ts +++ b/src/lib/insights/__tests__/status-batch.test.ts @@ -60,7 +60,7 @@ function servedCard() { function pendingCard( metric: string, finalize: (arg: { content: string }) => Promise = vi.fn( - async (_arg: { content: string }) => ({}), + async (): Promise => ({}), ), ) { const timeout = vi.fn(() => ({ @@ -100,7 +100,11 @@ beforeEach(() => { describe("generateStatusBatchForUser — one call covers all present metrics", () => { it("issues exactly ONE provider call for the seven pending cards and fans each summary into its finalize", async () => { - const mkFinalize = () => vi.fn(async (_arg: { content: string }) => ({})); + const mkFinalize = () => + vi.fn((arg: { content: string }): Promise => { + void arg; + return Promise.resolve({}); + }); const finalizers = { "blood-pressure": mkFinalize(), weight: mkFinalize(),