mantimon-tcg/frontend/src/socket
Cal Corum 56de143397 Add socket message factory tests - TEST-020 complete (20 tests)
Quick win #2: Test coverage for WebSocket message factory functions

Tests cover:
- generateMessageId() produces valid UUIDs
- createJoinGameMessage() with/without last_event_id
- createActionMessage() with various action types
- createResignMessage() structure
- createHeartbeatMessage() structure
- Message ID uniqueness across all factories
- Integration tests validating message structure

Results:
- 20 new tests, all passing
- Socket/types.ts factory functions: 0% → 100% coverage
- WebSocket message reliability improved
- Message tracking validation established

All tests pass (1045/1045 total, +20 from previous)
2026-02-02 15:39:11 -06:00
..
client.spec.ts Add Socket.IO client with typed game events (F0-006) 2026-01-30 11:15:17 -06:00
client.ts Add WebSocket client and game store infrastructure 2026-02-01 20:50:43 -06:00
index.ts Add Socket.IO client with typed game events (F0-006) 2026-01-30 11:15:17 -06:00
types.spec.ts Add socket message factory tests - TEST-020 complete (20 tests) 2026-02-02 15:39:11 -06:00
types.ts Fix prize zone rendering in Mantimon TCG mode (#2) 2026-02-02 15:30:27 -06:00