Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

test(desktop): align controller fixtures with UI types

Josué100c650d8578
diff --git a/desktop-app/ui/src/hooks/domain/__tests__/switchToChat.unified.test.tsx b/desktop-app/ui/src/hooks/domain/__tests__/switchToChat.unified.test.tsx
index 381199c4b..b1359eb4e 100644
--- a/desktop-app/ui/src/hooks/domain/__tests__/switchToChat.unified.test.tsx
+++ b/desktop-app/ui/src/hooks/domain/__tests__/switchToChat.unified.test.tsx
@@ -239,7 +239,7 @@ describe('switchToChat (unified, D.4)', () => {
expect(clerum.chat.replaceMessages).toHaveBeenCalledTimes(persistedBeforeStaleHydration)
expect(
clerum.chat.replaceMessages.mock.calls.some(call =>
- call[2].some(message => message.content === 'stale answer')
+ call[2].some((message: { content?: string }) => message.content === 'stale answer')
)
).toBe(false)
})
diff --git a/desktop-app/ui/src/hooks/domain/__tests__/useActivityController.test.tsx b/desktop-app/ui/src/hooks/domain/__tests__/useActivityController.test.tsx
index 1c537bb83..8f281c874 100644
--- a/desktop-app/ui/src/hooks/domain/__tests__/useActivityController.test.tsx
+++ b/desktop-app/ui/src/hooks/domain/__tests__/useActivityController.test.tsx
@@ -174,7 +174,9 @@ describe('useActivityController', () => {
updatedAt: '2026-07-22T00:00:00.000Z',
messageCount: 1,
}
- const initialProps = { chatList: [localChat] }
+ const initialProps = {
+ chatList: [localChat as typeof localChat & { remote?: boolean }],
+ }
const { result, rerender } = renderHook(
({ chatList }: typeof initialProps) =>
useActivityController({
diff --git a/desktop-app/ui/src/hooks/domain/__tests__/useAgentsDataController.test.tsx b/desktop-app/ui/src/hooks/domain/__tests__/useAgentsDataController.test.tsx
index afbf45129..ab22e0aca 100644
--- a/desktop-app/ui/src/hooks/domain/__tests__/useAgentsDataController.test.tsx
+++ b/desktop-app/ui/src/hooks/domain/__tests__/useAgentsDataController.test.tsx
@@ -8,11 +8,14 @@ import { useAgentsDataController } from '../useAgentsDataController'
function catalog(agentNames: string[]): AccessCatalog {
return {
+ userId: 'user-1',
+ teamId: null,
+ userContextIds: [],
agentNames,
userAgentNames: agentNames,
+ teamContextIds: [],
teamAgentNames: [],
- mcpServerNames: [],
- contextNames: [],
+ contextIds: [],
mcpServersByAgent: {},
agentContextByName: {},
agentProviderByName: {},