test(shared): hubClientTransportRun/Catch + testing/i18n 补 116 个单元测试(Lane D #1764 第九批) - #1778
Conversation
|
Warning Review limit reached
Next review available in: 53 minutes Limit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?Wait for the limit to reset, then comment An organization admin can change what happens after included review limits in Billing. How do review limits work?CodeRabbit enforces per-developer PR review limits within each organization. For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
094b8c8 to
09c67c5
Compare
…Lane D #1764 第九批) - hubClientTransportRun.ts:+47(注入 fetchImpl 全路径,100% 行/分支/函数覆盖;refresh-recovery 门控、TIMEOUT/NETWORK 重映射、route-fallback 语义) - hubClientTransportCatch.ts:+34(19 个导出全量:abort 超时计时器清理、catch 分类/决策/效果 4 分支、exactOptional 包装) - testing/i18n.ts:+35(createTestI18n/installTestI18n/useTestI18nLanguage:默认值/语言选择/资源合并/回退/隔离) 不改任何产品代码。Lane D #1764 Co-authored-by: Cursor <cursor@vectorcontrol.tech>
09c67c5 to
96e86b3
Compare
Summary
延续 #1765–#1777,落地 Lane D 前端测试补债 (#1764) 第九批:给 3 个模块补 116 个单元测试。不改任何产品代码。
为什么选它
hubClientTransportRun.ts(413 行):run 传输流编排(refresh-recovery 门控、TIMEOUT/NETWORK 重映射、route-fallback)——全部经注入 fetchImpl 测试,100% 行/分支/函数覆盖。hubClientTransportCatch.ts(423 行):catch 分类/决策/效果编排 + abort 超时计时器生命周期。testing/i18n.ts(171 行):测试专用 i18n 工具(createTestI18n/installTestI18n),此前零覆盖。覆盖范围
Test plan
vitest run新文件 — 116/116 通过tsc --noEmit全包 0 错误关联