Files
compiler-explorer/static/tests
Matt GodboltandClaude 464f7ea9c0 Replace brittle string comparisons with ValidationErrorCode enum
- 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>
2025-08-04 13:42:24 -05:00
..
2025-07-28 10:34:46 -05:00
2025-06-19 08:46:57 -05:00
2025-07-28 10:34:46 -05:00

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.