Commit 8309b37
test(e2e): mock gamma-api /teams endpoint (MMQA-1800)
The main merge brought in TeamsCache (app/components/UI/Predict/
providers/polymarket/TeamsCache.ts) which fetches
gamma-api.polymarket.com/teams?league=...&abbreviation=... when
rendering sports markets that have team metadata (NBA, NFL, etc.).
Adds:
- POLYMARKET_TEAMS_MOCKS function in polymarket-mocks.ts (returns []),
wired into POLYMARKET_COMPLETE_MOCKS so predict specs are covered.
- Default GET matcher in defaults/polymarket-apis.ts so non-predict
specs that pass through Explore don't leak when team-aware markets
render. Empty array is safe — TeamsCache short-circuits on
non-array responses.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ef93a06 commit 8309b37
2 files changed
Lines changed: 26 additions & 0 deletions
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
47 | 53 | | |
48 | 54 | | |
49 | 55 | | |
| |||
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
675 | 675 | | |
676 | 676 | | |
677 | 677 | | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
678 | 697 | | |
679 | 698 | | |
680 | 699 | | |
| |||
2234 | 2253 | | |
2235 | 2254 | | |
2236 | 2255 | | |
| 2256 | + | |
2237 | 2257 | | |
2238 | 2258 | | |
2239 | 2259 | | |
| |||
0 commit comments