Summary of What Needs to be Done:
Add unit tests for the scoreDaysSinceLastCommit 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 <= 7 days returns 15 points
- Test >= 30 days returns 0 points
- Test 7-30 day range scales linearly
Impact that it would Provide:
- Ensures recency scoring is correct
- Validates inactivity penalty calculation
Summary of What Needs to be Done:
Add unit tests for the scoreDaysSinceLastCommit 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: