|
|
@@ -115,15 +115,6 @@ jest.mock('@tanstack/react-query', () => {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-// Mock cn工具函数
|
|
|
-jest.mock('@/utils/cn', () => ({
|
|
|
- cn: (...inputs: any[]) => inputs.join(' ')
|
|
|
-}))
|
|
|
-
|
|
|
-// Mock platform工具
|
|
|
-jest.mock('@/utils/platform', () => ({
|
|
|
- isWeapp: () => false
|
|
|
-}))
|
|
|
|
|
|
// 创建测试用的 QueryClient
|
|
|
const createTestQueryClient = () => new QueryClient({
|