Skip to content

Add backend integration testing infrastructure#128

Open
DevalGarg129 wants to merge 1 commit into
0rigin-c0de:mainfrom
DevalGarg129:add-backend-integration-tests
Open

Add backend integration testing infrastructure#128
DevalGarg129 wants to merge 1 commit into
0rigin-c0de:mainfrom
DevalGarg129:add-backend-integration-tests

Conversation

@DevalGarg129
Copy link
Copy Markdown

This PR adds backend integration testing support for PiperChat. Previously, the backend had no proper automated testing setup, making it difficult to verify critical flows safely.

Added a complete testing infrastructure using Vitest, Supertest, and MongoMemoryServer with isolated in-memory database testing and mocked external services.

Covered important backend workflows including:

  • User signup
  • OTP verification
  • User signin
  • Friend request send flow
  • Friend request accept flow
  • Friend request ignore flow

Also refactored the backend startup structure slightly to improve testability and updated the README with instructions for running backend tests locally.

@DevalGarg129 DevalGarg129 requested a review from 0rigin-c0de as a code owner May 20, 2026 08:50
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 20, 2026

@DevalGarg129 is attempting to deploy a commit to the Sunil Kumar's projects Team on Vercel.

A member of the Team first needs to authorize it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant