Skip to content

test: add basic tests for user route stubs (#12)#2135

Open
sureshchouksey8 wants to merge 1 commit into
xevrion-v2:mainfrom
sureshchouksey8:fix/issue-12-user-tests
Open

test: add basic tests for user route stubs (#12)#2135
sureshchouksey8 wants to merge 1 commit into
xevrion-v2:mainfrom
sureshchouksey8:fix/issue-12-user-tests

Conversation

@sureshchouksey8

Copy link
Copy Markdown

Description

This PR addresses Issue #12. It adds basic unit tests for the Express user route stubs in apps/api/tests/users.test.ts.

  • Covers the GET /users list behavior.
  • Covers the POST /users create behavior with a mock payload.
  • Added vitest and supertest to apps/api to run the tests.
  • Extracted app export from src/index.ts conditionally to avoid port conflicts during test execution.

Resolves #12


Bounty Payout Information

Please send the $50 bounty payout to my PayPal:
https://paypal.me/sureshc26

github-actions Bot added a commit that referenced this pull request Jun 24, 2026
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.

Write unit tests for user routes

1 participant