Skip to content

Update Unit Tests for auth.controller.ts #52

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions