Skip to content

Develop#24

Merged
Nella1414 merged 18 commits intomainfrom
develop
Nov 23, 2025
Merged

Develop#24
Nella1414 merged 18 commits intomainfrom
develop

Conversation

@Nella1414
Copy link
Member

No description provided.

SebasDuqueC and others added 17 commits November 17, 2025 15:44
…es de commits

- README.md con secciones de instalación, ejecución y testing
- Swagger UI configurado en /api/docs con decoradores en endpoints y DTOs
- COMMITS.md con guía de Conventional Commits y ejemplos prácticos
- Documentación adicional en carpeta docs/
Add 140 unit tests covering all critical authentication components with 68% overall code coverage.

Tests added:
- AuthService: Google OAuth validation, JWT generation, user CRUD operations
- AuthController: Google authentication endpoints and callbacks
- Guards: JwtAuthGuard, RolesGuard, GoogleAuthGuard
- Strategies: JwtStrategy, GoogleStrategy
- Decorators: @public, @roles, @getuser
- DTOs: GoogleUserDto, AuthResponseDto validation
- Configuration: Environment variable validation
- PrismaService: Database connection lifecycle

Test Infrastructure:
- Configure Jest with moduleNameMapper for path resolution
- Add reflect-metadata setup for decorators
- Create mock PrismaClient for testing without database
- Add test coverage reporting

Coverage:
- 100% coverage on AuthService, AuthController, all Guards, all Strategies, DTOs, and PrismaService
- 68.16% overall statement coverage
- 84.61% branch coverage
- 11 test suites, 140 tests passing

All tests pass successfully.
Added a comment for unit tests related to database connection handling.
Added unit tests to ensure all required environment variables exist, preventing production errors.
* feat(gestionUsuario): administración de usuarios

* feat(biografia):como usuario quiero editar mi bigrafia
… structure (#10)

* fix: update Prisma schema and user service to use new role and status structure

* fix: update AuthController to use gatewayUrl instead of frontendUrl for redirects

* fix: update JWT_SECRET in .env.template for consistency
@Nella1414 Nella1414 requested a review from DannielEU November 23, 2025 17:00
@sonarqubecloud
Copy link

@Nella1414 Nella1414 merged commit 38ea75b into main Nov 23, 2025
1 check 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

Development

Successfully merging this pull request may close these issues.

5 participants