添加后端集成测试套件

- 实现 82 个集成测试用例覆盖所有 API 端点
- 使用真实数据库连接,无 mock 逻辑
- 修复 PUT 请求只更新提供字段的逻辑
- 配置 Vitest 串行执行避免测试竞态

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
hughhuangandClaude Sonnet 4.5 committed 2026-02-05 15:23:37 +08:00
1 parent 6df528f187
commit 697430feed
18 files changed
+4333 -8

No files matched your search

+2 -2
View File
@@ -4,7 +4,7 @@
"module": "commonjs",
"lib": ["ES2022"],
"outDir": "./dist",
"rootDir": "./src",
"rootDir": "./",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
@@ -13,6 +13,6 @@
"moduleResolution": "node",
"types": ["node"]
},
"include": ["src/**/*"],
"include": ["src/**/*", "tests/**/*"],
"exclude": ["node_modules", "dist"]
}