后端补充高风险链路测试

This commit is contained in:
yml
2026-05-21 14:10:41 +08:00
parent 84ca9cac09
commit 5711d38c8f
4 changed files with 158 additions and 2 deletions
+11 -2
View File
@@ -247,13 +247,22 @@
- `npm run typecheck`
- `npm run build`
- `npm test`
23. 高风险链路补测试:
- webhook 事件入库 payload 可稳定保留原始 headers/query/body,便于后续 replay
- 库存换码在“兑换码已使用且无替换库存”时进入等待库存状态,并记录已使用事件
- Agiso 自动发货成功标记可从字符串 context 中识别,且会忽略无效 JSON
24. Docker 内验证通过:
- 相关 3 个测试文件共 14 个用例通过
- `npm run typecheck`
- `npm run build`
- `npm test` 共 125 个用例通过
## 下一步建议
第一批继续推进时,建议按这个顺序:
1. 为 webhook、库存换码、自动发货补测试
2. 继续迁移服务层中最核心、最常改的订单 / 履约 / claim 模块
1. 继续迁移服务层中最核心、最常改的订单 / 履约 / claim 模块
2. 逐步移除服务层 `@ts-nocheck`,优先处理自动发货、claim session、webhook service
## 执行原则