| 1 | import { vi } from "vitest"; |
| 2 | |
| 3 | export const useService = vi.fn(() => ({ |
| 4 | value: null, |
| 5 | state: "idle", |
| 6 | error: null, |
| 7 | reload: vi.fn(() => Promise.resolve()), |
| 8 | })); |
| 9 | |
| 10 | export const useServices = vi.fn(() => ({ |
| 11 | services: { |
| 12 | auth: { isAuthenticated: true }, |
| 13 | config: { config: { name: "test-assistant" } }, |
| 14 | model: { model: "test-model", llmApi: {} }, |
| 15 | mcp: {}, |
| 16 | apiClient: { apiClient: {} }, |
| 17 | }, |
| 18 | loading: false, |
| 19 | error: null, |
| 20 | allReady: true, |
| 21 | })); |