Преглед изворни кода

✅ test(profile): 优化测试文件依赖管理

- 移除未使用的cn工具函数mock
- 移除未使用的platform工具mock
- 精简测试环境依赖,提高测试执行效率
yourname пре 3 месеци
родитељ
комит
4cc30658fe
1 измењених фајлова са 0 додато и 9 уклоњено
  1. 0 9
      mini/tests/pages/profile.test.tsx

+ 0 - 9
mini/tests/pages/profile.test.tsx

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