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

@@ -3,7 +3,7 @@ import { fireEvent, render, screen } from '@testing-library/react'
import type { DocumentItem } from '@/models/datasets'
import PreviewDocumentPicker from './preview-document-picker'
// Mock react-i18next
// Override shared i18n mock for custom translations
jest.mock('react-i18next', () => ({
useTranslation: () => ({
t: (key: string, params?: Record<string, unknown>) => {