brackt/app/routes/api/__tests__
Chris Parsons b5b60a6093
fix(tests): update mock query keys after participants table rename
Change mock db.query.participants to db.query.seasonParticipants in test
files to match the schema rename from commit 66145a9. This fixes
"Cannot read properties of undefined (reading 'findFirst'/'findMany')"
errors that occurred when production code queries db.query.seasonParticipants
but test mocks only defined the old participants key.

Files updated:
- app/services/simulations/__tests__/world-cup-simulator.test.ts
- app/routes/api/__tests__/draft.force-manual-pick.test.ts
- app/routes/api/__tests__/draft.force-manual-pick.timer-mode.test.ts
- app/routes/api/__tests__/draft.make-pick.timer-mode.test.ts
- server/__tests__/timer-autodraft.test.ts
- app/models/__tests__/team-score-events.test.ts

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-01 19:09:28 +00:00
..
draft.force-manual-pick.test.ts fix(tests): update mock query keys after participants table rename 2026-05-01 19:09:28 +00:00
draft.force-manual-pick.timer-mode.test.ts fix(tests): update mock query keys after participants table rename 2026-05-01 19:09:28 +00:00
draft.make-pick.timer-mode.test.ts fix(tests): update mock query keys after participants table rename 2026-05-01 19:09:28 +00:00
draft.start.test.ts Add draft room closure after completion (#359) 2026-04-30 10:14:14 -07:00
queue.add.test.ts feat: Implement drag-and-drop functionality for queue items; add duplicate prevention for participants in queue 2025-10-25 21:02:16 -07:00