Skip to content

Conversation

@dacsang97
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings October 11, 2025 08:30
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes authentication integration tests by updating test database references and ensuring proper test data setup. The changes address inconsistencies in database naming and missing required fields that were causing test failures.

  • Updated database references from nginx_love_test to nginx_waf_test for consistency
  • Added missing isFirstLogin field to test user data models
  • Enhanced JWT refresh token generation with unique JWT IDs for better security
  • Created comprehensive test environment configuration

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
apps/api/vitest.setup.ts Updated test database name reference in error message
apps/api/src/utils/jwt.ts Added JWT ID generation to refresh tokens for uniqueness
apps/api/src/domains/auth/tests/auth.service.test.ts Added missing isFirstLogin field and updated refresh token test expectations
apps/api/src/domains/auth/tests/auth.integration.test.ts Added missing isFirstLogin field to test user creation
apps/api/.env.test Created comprehensive test environment configuration file

@sonarqubecloud
Copy link

@vncloudsco vncloudsco merged commit aaa4e8f into TinyActive:main Oct 11, 2025
3 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

Development

Successfully merging this pull request may close these issues.

2 participants