test(web): restore coverage baseline above gate (63.14 -> 66.72 lines) - #1490
Conversation
|
Warning Review limit reached
Next review available in: 57 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. 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 for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling 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 (7)
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 |
web: extend executionTargetQueries/hubAuth API tests, add toastStore tests (lines 66.72, statements 65.61, functions 55.72, branches 60.26 — all above coverage-baseline.json; the functions metric was the last one below baseline at 53.21 vs 53.42). desktop: add hubAuth contract, useAuth, useDesktopCommands behavior tests (also above their baseline metrics). Also ignore vitest test-results.json output next to test-results/.
8b095e2 to
260e24f
Compare
…wave) - Hub integration fixtures: merged in #1489 - Edge tests on Linux: merged in #1491 (incl. ACP request-sequence race fix) - TokenDance ID defaults: merged in #1480 (+ check-secrets.sh *_URL exemption) - Frontend coverage gate: merged #1490 (web 63.14→66.72) / #1488 (desktop) - Edge lint debt: merged in #1491 (102→0, zero exclusions, .gitattributes eol) Remaining: CI policy parser (#1481), Doc SSOT compaction, Desktop typecheck, shared frontend tests.
…wave) (#1492) - Hub integration fixtures: merged in #1489 - Edge tests on Linux: merged in #1491 (incl. ACP request-sequence race fix) - TokenDance ID defaults: merged in #1480 (+ check-secrets.sh *_URL exemption) - Frontend coverage gate: merged #1490 (web 63.14→66.72) / #1488 (desktop) - Edge lint debt: merged in #1491 (102→0, zero exclusions, .gitattributes eol) Remaining: CI policy parser (#1481), Doc SSOT compaction, Desktop typecheck, shared frontend tests. Co-authored-by: Codex (Delicious233) <codex@vectorcontrol.tech>
#1490) web: extend executionTargetQueries/hubAuth API tests, add toastStore tests (lines 66.72, statements 65.61, functions 55.72, branches 60.26 — all above coverage-baseline.json; the functions metric was the last one below baseline at 53.21 vs 53.42). desktop: add hubAuth contract, useAuth, useDesktopCommands behavior tests (also above their baseline metrics). Also ignore vitest test-results.json output next to test-results/. Co-authored-by: Codex <codex@vectorcontrol.tech>
…wave) (#1492) - Hub integration fixtures: merged in #1489 - Edge tests on Linux: merged in #1491 (incl. ACP request-sequence race fix) - TokenDance ID defaults: merged in #1480 (+ check-secrets.sh *_URL exemption) - Frontend coverage gate: merged #1490 (web 63.14→66.72) / #1488 (desktop) - Edge lint debt: merged in #1491 (102→0, zero exclusions, .gitattributes eol) Remaining: CI policy parser (#1481), Doc SSOT compaction, Desktop typecheck, shared frontend tests. Co-authored-by: Codex <codex@vectorcontrol.tech>
背景
validate job 的 coverage baseline gate 挂:agenthub-web 与 agenthub-desktop 全指标回归(web lines 63.14 < 63.61 等)。
修复内容
web(3 文件,+304 行测试)
executionTargetQueries.test.ts/hubAuth.test.ts:扩展 API 层测试toastStore.test.ts(新增):覆盖 addToast/showToast/dismissToast/removeToast + 自动消失/上限 5/不可变desktop(3 文件,新增)
hubAuth.contract.test.ts/useAuth.test.ts/useDesktopCommands.behavior.test.ts结果(本地 vitest --coverage)
全部指标 ≥ baseline(未降低任何阈值),desktop 同组测试也超过其 baseline。
验证
web + desktop 测试全过(1737 passed, 0 failed, 0 skipped)。