Skip to content

[Backend] Fix test coverage to meet 80% threshold #21

Description

@Penielka

Description

Jest config requires 80% coverage but many modules fall below. Add tests to meet coverage thresholds.

Files to Modify

  • backend/tests/**/*.test.ts (various)
  • backend/jest.config.js

Definition of Done

  • Branch coverage >= 80%
  • Function coverage >= 80%
  • Line coverage >= 80%
  • Statement coverage >= 80%
  • All critical paths tested
  • Edge cases covered
  • Error handling tested

Acceptance Criteria

  1. npm run test:ci exits with code 0
  2. Coverage report shows all metrics >= 80%
  3. No skipped tests without documented reason
  4. Mock external dependencies appropriately

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official CampaignbackendBackend API issuestesting

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions