When ESPN's API returns teams directly on the conference group (no division children), all teams got division="" so only one team globally received divisionRank=1. Fix by resolving division from a hardcoded team-name map as a fallback, and scoping divisionRank computation per conference+division to prevent AL/NL teams from sharing a group. https://claude.ai/code/session_01288dkXYwKJUfXrEhPd8rmo |
||
|---|---|---|
| .. | ||
| epl.test.ts | ||
| f1.test.ts | ||
| mlb.test.ts | ||
| mls.test.ts | ||
| nba.test.ts | ||
| nhl.test.ts | ||
| sync.test.ts | ||
| wnba.test.ts | ||