The "429 from server is surfaced (no infinite retry storm)" test routed `**/api/v1/feed`, but the app requests `/api/v1/feed?limit=20` — a plain glob without a trailing wildcard doesn't match a URL with a query string, so the route never fired: `attempts` stayed 0 and `expect(attempts).toBeLessThan(15)` passed trivially. The test never forced a 429 or exercised any retry behavior. Fix: match with a regex `/\/api\/v1\/feed(\?|$)/` (catches the query-string URL, excludes /feed/delta), and gate on `attempts >= 1` before judging retry behavior so it can't pass again without actually hitting the throttled endpoint. Found during self-review of the test-quality batches. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
4.0 KiB
4.0 KiB