Skip to content

Task/users inttest - #502

Merged
greatest0fallt1me merged 4 commits into
Predictify-org:mainfrom
d3v-active:task/users-inttest
Jul 26, 2026
Merged

Task/users inttest#502
greatest0fallt1me merged 4 commits into
Predictify-org:mainfrom
d3v-active:task/users-inttest

Conversation

@d3v-active

Copy link
Copy Markdown
Contributor

Closes #354

This PR adds end-to-end integration tests for the users endpoints (buffer #18).

Changes Made

  • Created tests/integration/users.test.ts to implement tests for the users route.
  • Tested endpoints:
    • GET /api/users/me
    • GET /api/users/:address/predictions
    • GET /api/users/:stellarAddress/profile
  • Checked inputs using the application's boundary validations, ensuring they return the correct standardized error envelope (e.g. invalid_address).
  • Isolated the tested endpoints gracefully using mock implementations of unrelated dependency layers and routers to keep testing fast and focused.

Acceptance Criteria Met

  • Implementation matches the description.
  • Tests added and passing.
  • Input validation at the boundary verified.

@drips-wave

drips-wave Bot commented Jul 25, 2026

Copy link
Copy Markdown

@d3v-active Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@greatest0fallt1me
greatest0fallt1me merged commit 3a15e4a into Predictify-org:main Jul 26, 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.

Add integration test for users (buffer #18)

2 participants