| title | impact | impactDescription | tags |
|---|---|---|---|
Incremental Test Fixing |
MEDIUM |
Methodical approach prevents getting overwhelmed by test failures |
testing, debugging, workflow |
When fixing failing tests in the Cal.com repository, take an incremental approach by addressing one file at a time rather than attempting to fix all issues simultaneously.
This methodical approach makes it easier to identify and resolve specific issues without getting overwhelmed by the complexity of multiple failing tests across different files.
- Run
yarn type-check:ci --forceto identify TypeScript type errors - Run
yarn testto identify failing unit tests - Address both type errors and failing tests before considering the task complete
- Type errors often need to be fixed first as they may be causing the test failures
- Focus on getting each file's tests passing completely before moving on to the next file
- Fix type errors before test failures - they're often the root cause
- Run
yarn prisma generateif you see missing enum/type errors