Skip to content

Feat/auth tests and pagination#1322

Merged
aji70 merged 4 commits into
MyFanss:mainfrom
sundayjob996:feat/auth-tests-and-pagination
Jun 28, 2026
Merged

Feat/auth tests and pagination#1322
aji70 merged 4 commits into
MyFanss:mainfrom
sundayjob996:feat/auth-tests-and-pagination

Conversation

@sundayjob996

@sundayjob996 sundayjob996 commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

closes #1047
closes #1048
closes #1049
closes #1050
backend module Auth (auth). Add service unit tests for happy path.
Backend module Auth (auth). Add DTO validation tests for invalid input.
Backend module Auth (auth). Add e2e test for primary endpoint.

Cover validateUser (found, not-found, re-throw), findById, and register
stub in AuthService with proper mock isolation.
Validate LoginDto (email, username, password) and RegisterDto (email,
password minLength, firstName, lastName, role enum) with class-validator,
covering missing fields, wrong types, and combined errors.
Integration tests for GET /v1/auth/profile and GET /v1/auth/users
endpoints using supertest with JWT auth, covering 401 for missing/invalid
tokens and 200 for valid authenticated requests.
Add GET /v1/auth/users with cursor/page/limit query params using the
existing PaginationDto and PaginatedResponseDto. Wire findAll in
UsersService with findAndCount, expose via AuthService.findAllUsers,
and add GET /v1/auth/profile endpoint. Update controller spec.
@drips-wave

drips-wave Bot commented Jun 28, 2026

Copy link
Copy Markdown

@sundayjob996 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

@aji70 aji70 merged commit 41c89bd into MyFanss:main Jun 28, 2026
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants