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.yml CI pipeline updated for expanded test suite
  • .gitignore Added coverage artifacts to gitignore
  • CLAUDE.md Updated project guidance
  • README.md Updated 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.tsx Formatter applied
  • websocketMessage.ts New WebSocket message validation module
  • websocketMessage.test.ts WebSocket validation tests
  • useSpectatorWebSocket.ts Updated spectator WebSocket handling
  • useWebSocket.ts Updated WebSocket handling
  • Added WebSocket message validation before processing to prevent malformed messages from causing errors harden behavioral
    3 files
    • websocketMessage.ts
    • useWebSocket.ts
    • useSpectatorWebSocket.ts
  • Comprehensive code quality improvements with 54 regression tests qualify internal

Error handling and module splitting

5 files changed
  • routes.py Added logging to silent except blocks
  • permissions.py Added logging to silent except blocks
  • commands.py Added logging
  • context.py Added logging
  • commands.py Added logging
  • Added logging to 28-29 remaining silent except blocks across CLI and storage modules, replacing silent exception swallowing remediate internal
    3 files
    • routes.py
    • permissions.py
    • commands.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