From c85ff84334b7c23b09554b6f10f27abcf4407744 Mon Sep 17 00:00:00 2001 From: Shakker Date: Wed, 29 Apr 2026 18:19:49 +0100 Subject: [PATCH] test: type model picker env auth mock --- src/commands/model-picker.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/commands/model-picker.test.ts b/src/commands/model-picker.test.ts index 99f68386874..30d594ad338 100644 --- a/src/commands/model-picker.test.ts +++ b/src/commands/model-picker.test.ts @@ -36,7 +36,10 @@ vi.mock("../agents/auth-profiles.js", () => ({ })); const resolveEnvApiKey = vi.hoisted(() => - vi.fn((_provider: string) => ({ apiKey: "test-key", source: "test" })), + vi.fn<(_provider: string) => { apiKey: string; source: string } | null>((_provider: string) => ({ + apiKey: "test-key", + source: "test", + })), ); const hasUsableCustomProviderApiKey = vi.hoisted(() => vi.fn(() => false)); vi.mock("../agents/model-auth.js", () => ({