refactor: [shitty claude AI first try] restructure server and user services, add new test cases, and improve error handling
This commit is contained in:
44
test.env
Normal file
44
test.env
Normal file
@ -0,0 +1,44 @@
|
||||
# Test Environment Configuration
|
||||
# This file contains configuration for running tests
|
||||
|
||||
# Test Database Configuration
|
||||
TEST_DB_HOST=localhost
|
||||
TEST_DB_PORT=5432
|
||||
TEST_DB_NAME=logidex_test
|
||||
TEST_DB_USER=test_user
|
||||
TEST_DB_PASSWORD=test_password
|
||||
TEST_DB_SSL_MODE=disable
|
||||
|
||||
# Test Redis Configuration
|
||||
TEST_REDIS_HOST=localhost
|
||||
TEST_REDIS_PORT=6379
|
||||
TEST_REDIS_PASSWORD=
|
||||
TEST_REDIS_DB=1
|
||||
|
||||
# Test Hydra Configuration
|
||||
TEST_HYDRA_ADMIN_URL=http://localhost:4445
|
||||
TEST_HYDRA_PUBLIC_URL=http://localhost:4444
|
||||
|
||||
# Test Environment Settings
|
||||
TEST_LOG_LEVEL=debug
|
||||
TEST_SERVER_PORT=8080
|
||||
TEST_TIMEOUT=30s
|
||||
|
||||
# Mock Settings
|
||||
ENABLE_MOCKS=true
|
||||
MOCK_OTP_CODE=123456
|
||||
MOCK_SMS_PROVIDER=true
|
||||
|
||||
# Test Feature Flags
|
||||
ENABLE_INTEGRATION_TESTS=false
|
||||
ENABLE_E2E_TESTS=false
|
||||
ENABLE_LOAD_TESTS=false
|
||||
|
||||
# Test Timeouts
|
||||
TEST_DEFAULT_TIMEOUT=30s
|
||||
TEST_INTEGRATION_TIMEOUT=60s
|
||||
TEST_E2E_TIMEOUT=120s
|
||||
|
||||
# Coverage Settings
|
||||
TEST_COVERAGE_THRESHOLD=80
|
||||
GENERATE_COVERAGE_REPORT=true
|
||||
Reference in New Issue
Block a user