Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 2 additions & 13 deletions ui/desktop/src/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ vi.mock('./contexts/ChatContext', () => ({
recipeConfig: null,
},
setChat: vi.fn(),
setPairChat: vi.fn(), // Keep this from HEAD
resetChat: vi.fn(),
hasActiveSession: false,
setRecipeConfig: vi.fn(),
Expand All @@ -115,6 +116,7 @@ vi.mock('./contexts/ChatContext', () => ({
clearDraft: vi.fn(),
contextKey: 'hub',
}),
DEFAULT_CHAT_TITLE: 'New Chat', // Keep this from HEAD
}));

vi.mock('./contexts/DraftContext', () => ({
Expand All @@ -137,19 +139,6 @@ vi.mock('./components/AnnouncementModal', () => ({
default: () => null,
}));

vi.mock('./hooks/useChat', () => ({
useChat: () => ({
chat: {
id: 'test-id',
title: 'Test Chat',
messages: [],
messageHistoryIndex: 0,
recipeConfig: null,
},
setChat: vi.fn(),
}),
}));

// Mock react-router-dom to avoid HashRouter issues in tests
vi.mock('react-router-dom', () => ({
HashRouter: ({ children }: { children: React.ReactNode }) => <>{children}</>,
Expand Down
Loading
Loading