Skip to content

[Good First Issue] Add unit tests for authentication service #6

@Dapappa

Description

@Dapappa

Points: 100

Write comprehensive unit tests for the authentication service.

Test Coverage Needed:

  • User registration with valid data
  • User registration with duplicate email
  • Login with correct credentials
  • Login with incorrect credentials
  • JWT token generation and validation
  • Password hashing and verification
  • Phone number validation (Nigerian format)

Files to create:

  • /packages/database/tests/auth.test.ts

Testing Framework: Jest
Target Coverage: 80%+


Want to work on this?

  1. Comment "I'd like to work on this!" to claim
  2. Wait for maintainer approval
  3. Fork the repo and create a branch
  4. Submit a PR when ready

Questions? Ask on Discord

🇳🇬 Part of Code for Change - Building technology that saves lives!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions