mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 05:09:47 -06:00
- Add ValidationErrorCode enum with type-safe error codes - Update ValidationResult to include errorCode and message fields - Replace string comparisons with switch statement for better maintainability - Show validation errors for debugging (except MISSING_REQUIRED_DATA which is expected) - Reuse error messages from ValidationResult instead of duplicating text - Update all tests to check errorCode instead of error strings 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Front-end unit tests
Tests here are super simple and use jsdom with a fake document to do quick checks on the front-end code.
For anything requiring a real browser, use the cypress tests in the cypress directory.