From ca937ba87a07fad8813c33522c212c78681d1cb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Tue, 20 Oct 2026 06:05:56 +0200 Subject: [PATCH] test(logging): type the probe handler's request argument --- src/lib/logging/__tests__/route-template.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/logging/__tests__/route-template.test.ts b/src/lib/logging/__tests__/route-template.test.ts index 313f1508e..5b798099c 100644 --- a/src/lib/logging/__tests__/route-template.test.ts +++ b/src/lib/logging/__tests__/route-template.test.ts @@ -96,7 +96,9 @@ describe("apiHandler's wide event", () => { }); it("still scrubs a path secret from both fields", async () => { - const route = apiHandler(async () => apiSuccess({ ok: true })); + const route = apiHandler(async (_req: NextRequest) => + apiSuccess({ ok: true }), + ); // No params handed in: the route falls back to the pathname, and the // redaction floor still hides the secret. await route(