diff --git a/src/agents/auth-profiles.store-cache.test.ts b/src/agents/auth-profiles.store-cache.test.ts index f619b7d9bb3..ca801543780 100644 --- a/src/agents/auth-profiles.store-cache.test.ts +++ b/src/agents/auth-profiles.store-cache.test.ts @@ -4,7 +4,11 @@ import path from "node:path"; import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; import { AUTH_STORE_VERSION } from "./auth-profiles/constants.js"; -const resolveExternalAuthProfilesWithPluginsMock = vi.fn(() => []); +type ExternalAuthProfiles = ReturnType< + typeof import("../plugins/provider-runtime.js").resolveExternalAuthProfilesWithPlugins +>; + +const resolveExternalAuthProfilesWithPluginsMock = vi.fn<() => ExternalAuthProfiles>(() => []); vi.mock("../plugins/provider-runtime.js", () => ({ resolveExternalAuthProfilesWithPlugins: resolveExternalAuthProfilesWithPluginsMock,