test(shared): hubClientPayloadRequestsSocial + PayloadPaths + chatview adapter 补 137 个单元测试(Lane D #1764 第七批) - #1776
Conversation
|
Warning Review limit reached
Next review available in: 50 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?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. 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 |
…w adapter 补 137 个单元测试(Lane D #1764 第七批) - hubClientPayloadRequestsSocial.ts:+23(27 个 social builder 全量覆盖,optional 字段 hasOwnProperty 断言) - hubClientPayloadPaths.ts:+27(96 个 path builder,qs 语义/percent-encoding/空串/unicode) - chatview/adapter.ts:+87(blocksToTranscriptItems 全分支 + resolveUnreadAnchorItemIndex/resolveCompactDividerIndices 首次覆盖) 不改任何产品代码。Lane D #1764 Co-authored-by: Cursor <cursor@vectorcontrol.tech>
136c023 to
b638db0
Compare
Summary
延续 #1765–#1773,落地 Lane D 前端测试补债 (#1764) 第七批:给 3 个纯逻辑模块补 137 个单元测试。不改任何产品代码。
为什么选它
hubClientPayloadRequestsSocial.ts(367 行):27 个 social 请求 builder,optional 字段存在性(hasOwnProperty vs undefined)是回归风险点。hubClientPayloadPaths.ts(471 行):96 个 path builder,qs/URLSearchParams 语义(0/false/'' 保留、null/undefined 跳过)与 percent-encoding 边界。chatview/adapter.ts(327 行):transcript→chatview 适配核心;resolveCompactDividerIndices此前零覆盖。覆盖范围
Test plan
vitest run新文件 — 137/137 通过tsc --noEmit全包 0 错误关联