feat(acp+): models/providers in desktop on ACP+ (#9987)
This commit is contained in:
@@ -63,6 +63,15 @@ vi.mock('./sessions', () => ({
|
||||
createSession: vi.fn(),
|
||||
}));
|
||||
|
||||
// Mock the ACP providers module used by OnboardingGuard so it doesn't try to
|
||||
// open a real ACP client connection during tests. Returning null defaults
|
||||
// keeps the app in the "brand new" (no provider configured) onboarding state.
|
||||
vi.mock('./acp/providers', () => ({
|
||||
acpReadDefaults: vi.fn().mockResolvedValue({ providerId: null, modelId: null }),
|
||||
acpSaveDefaults: vi.fn().mockResolvedValue(undefined),
|
||||
acpListProviderDetails: vi.fn().mockResolvedValue([]),
|
||||
}));
|
||||
|
||||
// Mock the ConfigContext module
|
||||
vi.mock('./components/ConfigContext', () => ({
|
||||
useConfig: () => ({
|
||||
|
||||
Reference in New Issue
Block a user