fix: add useAuthContext mock to ToolCall tests

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Aron Gates 2026-03-09 14:49:06 +00:00
parent 2b9091eb5e
commit b7d0866d0e
No known key found for this signature in database
GPG key ID: 4F5BDD01E0CFE2A0

View file

@ -31,6 +31,7 @@ jest.mock('~/hooks', () => ({
},
ref: { current: null },
}),
useAuthContext: () => ({ token: 'mock-token' }),
}));
jest.mock('~/hooks/MCP', () => ({
@ -89,6 +90,8 @@ jest.mock('lucide-react', () => ({
ChevronDown: () => <span>{'ChevronDown'}</span>,
ChevronUp: () => <span>{'ChevronUp'}</span>,
TriangleAlert: () => <span>{'TriangleAlert'}</span>,
CheckCircle: () => <span>{'CheckCircle'}</span>,
XCircle: () => <span>{'XCircle'}</span>,
}));
jest.mock('~/utils', () => ({