diff --git a/client/src/components/Chat/Input/TokenUsage/index.spec.tsx b/client/src/components/Chat/Input/TokenUsage/index.spec.tsx index a776599ad4..061a83a59a 100644 --- a/client/src/components/Chat/Input/TokenUsage/index.spec.tsx +++ b/client/src/components/Chat/Input/TokenUsage/index.spec.tsx @@ -36,9 +36,22 @@ jest.mock('~/hooks/Chat/useCompactConversation', () => ({ supportsCompaction: () => false, })); -jest.mock('./Breakdown', () => ({ - __esModule: true, - default: () =>
, +jest.mock('@librechat/chat/components', () => ({ + ...jest.requireActual('@librechat/chat/components'), + ContextBreakdown: ({ + expanded, + onExpandedChange, + }: { + expanded: boolean; + onExpandedChange: (expanded: boolean) => void; + }) => ( +