undef-engine
2026-03-07
Massive test suite expansion with code quality sweep and WebSocket validation
547 files · 81,362+ · 4,591-
Comprehensive test suite build-out
4 files changed
ci.ymlCI pipeline updated for expanded test suite.gitignoreAdded coverage artifacts to gitignoreCLAUDE.mdUpdated project guidanceREADME.mdUpdated documentation with test coverage info
- Added hundreds of unit tests covering primitives (Vote, BlindVote, DiceRoll, Deck, Hand, Pile, ActionQuota, Cooldown, Vault, Zone, Commitment, Pool, WeightedPool, Score, Streak, Scoreboard, and many more) qualify internal
- Added Redis store tests covering card, chat, state, connection, tournament, session, invite, pubsub, task queue, rate limiter, content, and character stores qualify internal
- Added admin route tests for OAuth, games, tournaments, users, invite codes, content import, and analytics qualify internal
- Added WebSocket tests for routing, rate limiting, dispatch, auth, reconnection, and common actions qualify internal
- Added game-specific tests for PDQ field operations, badges, lifecycle hooks, acquisitions mixin, liars hand actions, and debate club actions qualify internal
Code quality improvements and WebSocket validation
5 files changed
App.tsxFormatter appliedwebsocketMessage.tsNew WebSocket message validation modulewebsocketMessage.test.tsWebSocket validation testsuseSpectatorWebSocket.tsUpdated spectator WebSocket handlinguseWebSocket.tsUpdated WebSocket handling
- Added WebSocket message validation before processing to prevent malformed messages from causing errors
harden
behavioral
3 files
websocketMessage.tsuseWebSocket.tsuseSpectatorWebSocket.ts
- Comprehensive code quality improvements with 54 regression tests qualify internal
Error handling and module splitting
5 files changed
routes.pyAdded logging to silent except blockspermissions.pyAdded logging to silent except blockscommands.pyAdded loggingcontext.pyAdded loggingcommands.pyAdded logging
- Added logging to 28-29 remaining silent except blocks across CLI and storage modules, replacing silent exception swallowing
remediate
internal
3 files
routes.pypermissions.pycommands.py
- Split dispatchers.py into focused modules and split 3 additional oversized files to reduce module size decouple internal
- Added 13 missing defaults constants, fixed heartbeat memory leak, and improved error logging remediate internal