Fix sports-season test: loosen makeMockDb type to Record<string, unknown>[]

typeof mockSeasons became too strict after adding participants to the mock
data, breaking inline arrays in other tests that don't include participants.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Chris Parsons 2026-04-28 22:19:53 -07:00
parent 1271700f41
commit 330660d1b8

View file

@ -41,7 +41,7 @@ const mockSeasons = [
{ id: "season-3", name: "2024 Old Golf", draftOn: pastStart, draftOff: pastEnd, year: 2024, status: "completed", sport: { name: "Golf" }, participants: [] },
];
function makeMockDb(seasons: typeof mockSeasons) {
function makeMockDb(seasons: Record<string, unknown>[]) {
return {
query: {
sportsSeasons: {