test: type model picker env auth mock

This commit is contained in:
Shakker
2026-04-29 18:19:49 +01:00
parent fba8af4d62
commit c85ff84334

View File

@@ -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", () => ({