mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-07-10 16:23:44 +00:00
fix(ci): add @modelcontextprotocol/ext-apps to jest transformIgnorePatterns and fix import sort
The package ships ESM-only; adding it to the babel-jest transform allow list lets all three jest configs (api, packages/api, and config which inherits api) process it correctly. Also sort imports in ToolCallInfo.tsx and MCPUIResourceCarousel.test.tsx which the CI sort-imports check flagged.
This commit is contained in:
parent
ec60cd479d
commit
5e844a614a
4 changed files with 6 additions and 4 deletions
|
|
@ -6,6 +6,7 @@ const esModules = [
|
|||
'@langchain/langgraph-checkpoint',
|
||||
'@langchain/langgraph-sdk',
|
||||
'@mistralai/mistralai',
|
||||
'@modelcontextprotocol/ext-apps',
|
||||
'uuid',
|
||||
].join('|');
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import { useState, useMemo } from 'react';
|
||||
import { ChevronDown } from 'lucide-react';
|
||||
import { useLocalize, useExpandCollapse } from '~/hooks';
|
||||
import { cn } from '~/utils';
|
||||
import { OutputRenderer } from './ToolOutput';
|
||||
import { cn } from '~/utils';
|
||||
|
||||
function isSimpleObject(obj: unknown): obj is Record<string, string | number | boolean | null> {
|
||||
if (typeof obj !== 'object' || obj === null || Array.isArray(obj)) {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import React from 'react';
|
||||
import { render, screen } from '@testing-library/react';
|
||||
import { RecoilRoot } from 'recoil';
|
||||
import { render, screen } from '@testing-library/react';
|
||||
import type { UIResource } from 'librechat-data-provider';
|
||||
import { useConversationUIResources } from '~/hooks/Messages/useConversationUIResources';
|
||||
import { MCPUIResourceCarousel } from '../MCPUIResourceCarousel';
|
||||
import { useOptionalMessagesConversation } from '~/Providers';
|
||||
import { useConversationUIResources } from '~/hooks/Messages/useConversationUIResources';
|
||||
import type { UIResource } from 'librechat-data-provider';
|
||||
|
||||
jest.mock('~/Providers', () => ({
|
||||
useOptionalMessagesConversation: jest.fn(),
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ const esModules = [
|
|||
'@langchain/langgraph-checkpoint',
|
||||
'@langchain/langgraph-sdk',
|
||||
'@mistralai/mistralai',
|
||||
'@modelcontextprotocol/ext-apps',
|
||||
'uuid',
|
||||
].join('|');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue