Skip to content

test : add unit tests for scoreOpenIssuesCount function #692

@tmdeveloper007

Description

@tmdeveloper007

Summary of What Needs to be Done:
Add unit tests for the scoreOpenIssuesCount 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 0 issues returns 15 points
  • Test 20+ issues returns 0 points
  • Test 1-19 issues scales linearly

Impact that it would Provide:

  • Ensures issue count scoring is correct
  • Validates penalty for open issues

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