Skip to content

test : add unit tests for scoreCommitFrequency function #690

@tmdeveloper007

Description

@tmdeveloper007

Summary of What Needs to be Done:
Add unit tests for the scoreCommitFrequency 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 10+ commits returns 25 points
  • Test linear scaling below 10 commits
  • Test 0 commits returns 0

Impact that it would Provide:

  • Ensures commit scoring is correctly weighted
  • Validates linear scaling formula

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions