Skip to content

Title: Add global HTTP exception filter tests #76

Description

@Uyoxy

Labels: testing good first issue

Description

src/common/filters/http-exception.filter.ts exists but has no unit
tests. Without tests, regressions in error response formatting go
undetected.

Implementation Requirements

  • Add unit tests for src/common/filters/http-exception.filter.ts
  • Cover: 400, 401, 403, 404, 500 responses
  • Verify response format matches src/common/interfaces/error-response.interface.ts

Acceptance Criteria

  • Tests cover all major HTTP error codes
  • Response format matches error response interface
  • All tests pass with npm test
  • CI checks pass before PR is merged

Evidence Required

Contributors must provide ALL of the following:

  • Screenshot of npm test passing with new tests
  • Screenshot of passing CI checks on the PR

Files Affected

  • src/common/filters/http-exception.filter.ts (modify)
  • src/common/filters/http-exception.filter.spec.ts (create)

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official Campaign

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions