Skip to content

Add Unit Tests for Core Backend Services #39

@Shalini828

Description

@Shalini828

🧪 Add Unit Tests for Core Backend Services

📌 Description

Currently, the project does not include automated unit tests for backend services and route logic. Adding unit tests will improve code reliability, maintainability, and help prevent regressions during future development.

🎯 Objective

Implement unit testing for core backend modules such as:

  • Authentication routes
  • Vehicle services
  • Booking services
  • AI or map-related routes (if applicable)

✅ Tasks

  • Select a testing framework (recommended: Jest)
  • Install required testing dependencies
  • Configure test environment
  • Write unit tests for important service logic
  • Ensure tests run successfully using npm test

💡 Expected Outcome

  • Test coverage for core modules
  • Developers can run automated tests before merging PRs
  • Improved project stability

📚 Additional Notes

Tests should be well-structured and follow best practices.
Mock external services (e.g., database calls) where necessary.

I would like to work on this issue.
Assign this to me.
Thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions