chore: 清理旧测试基础设施并添加新测试框架

- 清理废弃的 CI/CD 工作流文件与 dogfood 输出
- 添加 vitest 测试环境配置(mocks、setup 文件)
- 添加算法、服务、页面、工具类的单元测试
- 更新 vitest 配置、依赖与文档
This commit is contained in:
2026-08-12 18:53:15 +08:00
parent 039fbe4f4c
commit 0f8b29874f
37 changed files with 3511 additions and 617 deletions
@@ -9,11 +9,13 @@
"dev:mp-weixin": "uni -p mp-weixin",
"build:mp-weixin": "uni build -p mp-weixin",
"test": "vitest --run",
"test:coverage": "vitest --run --coverage",
"test:ui": "vitest --ui",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui"
},
"dependencies": {
"@dcloudio/uni-app": "^3.0.0-alpha-5000820260420001",
"@dcloudio/uni-components": "^3.0.0-alpha-5000820260420001",
"@dcloudio/uni-h5": "^3.0.0-alpha-5000820260420001",
"lunar-javascript": "1.7.7",