syntaxai/tdd.md · commit 3bb73b2

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]>
author
syntaxai <[email protected]>
date
2026-05-03 16:32:09 +01:00
parent
dac87f8
commit
3bb73b2fbefb9f15224f9fdfb9638bcd34acff25

1 file changed · +2 −2

modified src/games.ts +2 −2
@@ -2,6 +2,6 @@ export interface Game {
22 id: string;
33 }
44
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 };
77 }