张翔
87342cb208
fix: 修复集成测试组件导入错误
- 为 news-section.integration.test.tsx 添加 lucide-react mock
- 为 products-section.integration.test.tsx 添加 lucide-react mock
- 为 services-section.integration.test.tsx 添加 lucide-react mock
- 修复 ESLint 错误:使用具体类型替代 any,添加 displayName,使用 import 替代 require
问题原因:测试文件缺少 lucide-react 图标库的 mock,导致组件渲染失败
解决方案:添加 lucide-react 的 mock,将图标组件替换为简单的 span 元素
测试结果:
- news-section.integration.test.tsx: 16 passed
- products-section.integration.test.tsx: 16 passed
- services-section.integration.test.tsx: 11 passed
- 总计: 43 passed
2026-04-09 13:15:52 +08:00
..
2026-03-29 14:50:09 +08:00
2026-03-30 13:13:41 +08:00
2026-04-09 13:15:52 +08:00
2026-03-28 09:42:45 +08:00
2026-03-26 19:18:28 +08:00
2026-03-29 11:48:44 +08:00
2026-03-30 13:13:41 +08:00
2026-03-28 09:42:45 +08:00
2026-03-29 14:32:33 +08:00
2026-03-28 22:48:22 +08:00
2026-03-28 09:42:45 +08:00
2026-03-24 10:11:30 +08:00