You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bun test --coverage fails: lines at 69.64% (threshold 75%)
src/api/github-api.ts (not unit-testable) pollutes the global coverage
Many branches in pure-function modules untested
Tests in api-utils.test.ts using Retry-After: "0" fall through to exponential back-off (1 s delay) because getRetryDelayMs checked seconds > 0, treating "0" as "no Retry-After header". Two tests take 3.1 s each → full suite takes 6.5 s.
Problem
bun test --coveragefails: lines at 69.64% (threshold 75%)src/api/github-api.ts(not unit-testable) pollutes the global coverageTests in
api-utils.test.tsusingRetry-After: "0"fall through to exponential back-off (1 s delay) becausegetRetryDelayMscheckedseconds > 0, treating"0"as "no Retry-After header". Two tests take 3.1 s each → full suite takes 6.5 s.Fix
bunfig.toml: extendcoveragePathIgnorePatternsto exclude non-unit-testable files (github-api.ts,commands/,tui/editor.ts,upgrade.ts,github-issue-ops.ts)api-utils.ts: changeseconds > 0→seconds >= 0soRetry-After: "0"returns 0 ms delaychecklist.ts,stdin.ts,api-utils.ts,ownership.tsResult