Skip to content

Update Unit Tests for auth.controller.ts #52

@ayshadogo

Description

@ayshadogo

Summary

Title: Update Unit Tests for auth.controller.ts in test/auth/auth.controller.spec.ts
The auth module already exists, but it currently lacks some unit tests for the controller layer.
This issue is to Update the missing tests suite for auth.controller.ts.

Task

Navigate to:

  • test/auth/auth.controller.spec.ts
  • Implement unit tests covering:
    • All public methods in auth.controller.ts
    • Expected success flows
    • Expected failure/error scenarios
    • Mocking dependencies such as:
      • Repositories
      • External services (if any)

Testing Requirements

  • Use Jest as the testing framework (default for NestJS).
  • Use TestingModule with mocked providers.
  • Ensure 90%+ coverage for auth.controller.ts.
  • Tests should be isolated, not touching database or integration logic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions