Repository navigation
test(aggregator): align seven test fixtures with landed type narrowings (#10379) - #10397
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 27 minutes. View limit details
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. |
|
agent-note:v1 |
Fixes #10379. Queue task 17334.
What
Updates the seven aggregator test files whose fixtures had drifted from the landed type narrowings, so
bunx tsc --noEmitinpm-stack/aggregatoris clean again (14 errors → 0). Test files only; no runtime behavior changes.aa-batches.test.ts— narrowAaFeedSectiontoAaSectionwith an explicit ok-guard before readingbatch/batches/stale/staleReason(they do not exist onAaAbsentSection).quota-actions-1174.test.ts—TodayView/AttentionViewnow live insrc/derive.ts, notsrc/model.ts; the 5-hourQuotaWindowliteral gains its requiredresetsAt: null.quota-exhaustion.test.ts— theQuotaCurrentWindowfixture gains the requiredvalue,valueLabel,windowSeconds,measuredAt,source,statefields.projects.test.ts— theGQLfixture'spageInfo.endCursoris typedstring | nullso paged clones can carry a cursor.overview.test.ts— theHealthViewfixture gains the requiredpush: null(impl(pm-stack): reconcile freshness gaps and surface push health #3976).decisions-page.test.ts—freePort()narrowsBun.serve'snumber | undefinedport before returning it asnumber.claude-adapter.test.ts— the failure-mode stubs areasync, matching thefetchPayloadcontract() => Promise<{ httpStatus, payload }>(a rejected promise is the same failure the sync throw modeled).Verification
bunx tsc --noEmitinpm-stack/aggregator: 0 errors (was 14, reproduced on main 39ab0ef before the fix — the exact set in aggregator: bunx tsc --noEmit reports 14 errors on main (aa-batches/quota/claude-adapter + 4 more test files) #10379's table).bun teston the seven files: 113 pass / 0 fail, 2660 expect() calls.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.