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:
Dustin Healy 2026-06-23 15:46:38 -07:00
parent ec60cd479d
commit 5e844a614a
4 changed files with 6 additions and 4 deletions

View file

@ -6,6 +6,7 @@ const esModules = [
'@langchain/langgraph-checkpoint',
'@langchain/langgraph-sdk',
'@mistralai/mistralai',
'@modelcontextprotocol/ext-apps',
'uuid',
].join('|');

View file

@ -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)) {

View file

@ -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(),

View file

@ -3,6 +3,7 @@ const esModules = [
'@langchain/langgraph-checkpoint',
'@langchain/langgraph-sdk',
'@mistralai/mistralai',
'@modelcontextprotocol/ext-apps',
'uuid',
].join('|');