@@ -2,6 +2,7 @@ import { beforeEach, describe, expect, it, vi } from "vitest";
22
33const mocks = vi . hoisted ( ( ) => ( {
44 ensureAuthProfileStore : vi . fn ( ) ,
5+ externalCliDiscoveryForProviderAuth : vi . fn ( ( ) => undefined ) ,
56 loadAuthProfileStoreWithoutExternalProfiles : vi . fn ( ) ,
67 resolveAuthProfileOrder : vi . fn ( ) ,
78 resolveAuthProfileDisplayLabel : vi . fn ( ) ,
@@ -12,6 +13,7 @@ const mocks = vi.hoisted(() => ({
1213
1314vi . mock ( "./auth-profiles.js" , ( ) => ( {
1415 ensureAuthProfileStore : mocks . ensureAuthProfileStore ,
16+ externalCliDiscoveryForProviderAuth : mocks . externalCliDiscoveryForProviderAuth ,
1517 loadAuthProfileStoreWithoutExternalProfiles : mocks . loadAuthProfileStoreWithoutExternalProfiles ,
1618 resolveAuthProfileOrder : mocks . resolveAuthProfileOrder ,
1719 resolveAuthProfileDisplayLabel : mocks . resolveAuthProfileDisplayLabel ,
@@ -35,6 +37,8 @@ describe("resolveModelAuthLabel", () => {
3537 ( { resolveModelAuthLabel } = await import ( "./model-auth-label.js" ) ) ;
3638 }
3739 mocks . ensureAuthProfileStore . mockReset ( ) ;
40+ mocks . externalCliDiscoveryForProviderAuth . mockReset ( ) ;
41+ mocks . externalCliDiscoveryForProviderAuth . mockReturnValue ( undefined ) ;
3842 mocks . loadAuthProfileStoreWithoutExternalProfiles . mockReset ( ) ;
3943 mocks . resolveAuthProfileOrder . mockReset ( ) ;
4044 mocks . resolveAuthProfileDisplayLabel . mockReset ( ) ;
0 commit comments