Summary of What Needs to be Done:
Add unit tests for the clamp helper function in src/lib/repo-health.ts. Tests must use vitest framework and import actual source code.
Changes that Need to be Made:
- Create test using vitest describe/it/expect
- Test value within range returns unchanged
- Test value below min returns min
- Test value above max returns max
- Test with non-finite values
Impact that it would Provide:
- Ensures clamp handles edge cases correctly
- Critical for all scoring functions
Summary of What Needs to be Done:
Add unit tests for the clamp helper function in src/lib/repo-health.ts. Tests must use vitest framework and import actual source code.
Changes that Need to be Made:
Impact that it would Provide: