mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-04-07 00:15:23 +02:00
fix: add useAuthContext mock to ToolCall tests
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
2b9091eb5e
commit
b7d0866d0e
1 changed files with 3 additions and 0 deletions
|
|
@ -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', () => ({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue