lila
a02f3b139d
fix: deduplicate distractors, replace tautological test, add distractor failure test
2026-04-28 15:17:31 +02:00
lila
3d16ab0fff
feat: guard against empty terms in createGameSession
2026-04-28 15:08:06 +02:00
lila
1e30f04e81
feat: add ownership check to evaluateAnswer, AuthenticatedRequest type
2026-04-28 14:39:13 +02:00
lila
fdeb769640
feat: add TTL to GameSessionStore, replay protection and session cleanup to evaluateAnswer
2026-04-28 14:03:15 +02:00
lila
a4a4bfff57
refactor: dependency injection for GameSessionStore via composition root
2026-04-28 13:48:50 +02:00
lila
02ccc88d24
fix: change GAME_ROUNDS from strings to numbers
2026-04-28 12:29:46 +02:00
lila
4ece995385
test: fill coverage gaps in lobbyService and gameService
...
- joinLobby: addPlayer returns falsy (race condition fallback)
- joinLobby: lobby disappears between addPlayer and final fetch
- createLobby: non-unique-violation errors re-thrown immediately
- createGameSession: unexpected DB errors propagate correctly
2026-04-24 10:11:36 +02:00
lila
3f7bc4111e
chore: rename project from glossa to lila
...
- Update all package names from @glossa/* to @lila/*
- Update all imports, container names, volume names
- Update documentation references
- Recreate database with new credentials
2026-04-13 10:00:52 +02:00
lila
e320f43d8e
test(api): add unit and integration tests for game service and endpoints
...
- Unit tests for createGameSession and evaluateAnswer (14 tests)
- Endpoint tests for POST /game/start and /game/answer via supertest (8 tests)
- Mock @glossa/db — no real database dependency
2026-04-12 09:04:41 +02:00