后端补充自动发货服务测试

This commit is contained in:
yml
2026-05-21 14:42:19 +08:00
parent 0d33778d4b
commit 861b7e0034
3 changed files with 220 additions and 16 deletions
@@ -312,6 +312,14 @@
- `npm run typecheck`
- `npm run build`
- `npm test` 共 128 个用例通过
45. Agiso 自动发货服务迁移前补直接测试:
- 新增 `ensureAgisoXianyuAutoDeliveryForDeliveredTaskWithDeps`,便于隔离 task repository、HTTP 请求、发货确认与消息通知依赖
- 覆盖订单下仍有任务未交付时跳过、配置缺失时记录 `skipped`、接口受理但未确认发货时记录 `failed` 三个关键分支
46. Docker 内验证通过:
- `src/services/platforms/agiso/xianyu/auto-delivery-service.test.js` 共 9 个用例通过
- `npm run typecheck`
- `npm run build`
- `npm test` 共 131 个用例通过
## 下一步建议