test: add comprehensive Jest tests for CustomPage and WorkflowOnboardingModal components (#29714)

This commit is contained in:
yyh
2025-12-16 14:18:09 +08:00
committed by GitHub
parent 7695f9151c
commit 4553e4c12f
7 changed files with 2121 additions and 15 deletions

View File

@@ -9,13 +9,6 @@ import {
} from '@/models/datasets'
import RetrievalMethodConfig from './index'
// Mock react-i18next
jest.mock('react-i18next', () => ({
useTranslation: () => ({
t: (key: string) => key,
}),
}))
// Mock provider context with controllable supportRetrievalMethods
let mockSupportRetrievalMethods: RETRIEVE_METHOD[] = [
RETRIEVE_METHOD.semantic,