test : added unit tests for consistency-score calculation functions#2701
test : added unit tests for consistency-score calculation functions#2701tmdeveloper007 wants to merge 1 commit into
Conversation
GSSoC Label Checklist 🏷️@Umbrella-io — please apply the appropriate labels before merging: Difficulty (pick one):
Quality (optional):
Validation (required to score):
|
|
Two things before this can merge:
Rebase + remove the duplicate block and this is good to go. |
Closes #2696.
Summary of What Has Been Done: Added unit tests for the pure calculation functions exported from src/lib/consistency-score.ts. Exported six previously-private helper functions to enable isolated unit testing.
Changes Made:
Impact it Made: Consistency scoring drives user-visible grades and improvement tips. Test coverage here prevents regressions in scoring logic that would affect developer gamification and streak tracking.