brackt/app/routes/__tests__
Chris Parsons 3c3b162aab
All checks were successful
🚀 Deploy / 🧪 Test (pull_request) Successful in 2m28s
🚀 Deploy / ʦ🔍 Typecheck & Lint (pull_request) Successful in 1m20s
🚀 Deploy / 🐳 Build (pull_request) Has been skipped
🚀 Deploy / 🚀 Deploy (pull_request) Has been skipped
Fix sports.test.tsx timeout: mock SportIcon to eliminate async image-error state updates
SportIcon renders <img> elements whose onError handler calls setFailed(true),
scheduling state updates asynchronously outside React act() in jsdom. With
multiple icons on the Sports page this caused the synchronous render test to
hit the 5000ms Vitest timeout intermittently.

Mock SportIcon in the test using resolveSportIconUrl() so the mock stays in
sync with the real URL resolution logic if it ever changes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-06 10:27:41 -07:00
..
admin.simulators.test.ts Hide completed seasons in admin tools (#418) 2026-05-12 16:52:26 -07:00
admin.sports-seasons.$id.test.ts Improve unmatched team reconciliation UX (#425) 2026-05-14 16:45:02 -07:00
admin.sports-seasons.helpers.test.ts Hide completed seasons in admin tools (#418) 2026-05-12 16:52:26 -07:00
admin.sports.$id.test.ts Add public sports overview page (#451) 2026-05-19 23:02:58 -07:00
admin.sports.new.test.ts Add public sports overview page (#451) 2026-05-19 23:02:58 -07:00
admin.tournaments.$id.test.tsx Canonical tournament layer: 2026-05-01 21:04:48 -07:00
api.upload-sport-icon.test.ts Add Cloudinary sports icon uploads (#393) 2026-05-07 16:07:34 -07:00
api.webhooks.cloudinary.test.ts Add Cloudinary-backed avatar system (#385) 2026-05-06 14:47:37 -07:00
batch-results-helpers.test.ts feat: batch qualifying results entry (#290) 2026-04-12 14:52:22 -07:00
check-email.test.ts Add email verification for email/password signups (#400) 2026-05-09 23:58:45 -07:00
onboarding.test.ts Add user onboarding flow with username selection (#430) 2026-05-15 11:17:15 -07:00
root.onboarding-exempt.test.ts Add admin user management interface with search and username editing (#431) 2026-05-15 12:07:51 -07:00
sports.test.tsx Fix sports.test.tsx timeout: mock SportIcon to eliminate async image-error state updates 2026-06-06 10:27:41 -07:00