green: hardcode game id return
Simplest thing that makes the failing test pass — return { id } directly.
This is the "fake it 'til you make it" step: no real spec loading yet.
The next red commit will assert something the hardcoded value can't
satisfy, forcing the real implementation.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
1 file changed · +2 −2
src/games.ts
+2
−2
| @@ -2,6 +2,6 @@ export interface Game { | ||
| 2 | 2 | id: string; |
| 3 | 3 | } |
| 4 | 4 | |
| 5 | -export async function loadGame(_id: string): Promise<Game> { | |
| 6 | - throw new Error("not implemented"); | |
| 5 | +export async function loadGame(id: string): Promise<Game> { | |
| 6 | + return { id }; | |
| 7 | 7 | } |