-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.test
More file actions
29 lines (22 loc) · 994 Bytes
/
.env.test
File metadata and controls
29 lines (22 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Test Environment Configuration
# This file is used by Jest tests to configure the test environment
# Environment
NODE_ENV=test
# Server Configuration
PORT=4001
# Security - Test JWT Secret
# Use a different secret than production/development
JWT_SECRET=test_jwt_secret_for_testing_minimum_32_characters_long
# Database Configuration - Test Database
# IMPORTANT: Use a separate test database to avoid affecting development/production data
# Format: mongodb+srv://username:password@host/database_test?options
MONGODB_URI=mongodb+srv://test_user:test_password@localhost/myworld_test?retryWrites=true&w=majority
# Database Mode: Set to true to use MongoDB for tests, false for in-memory
# For faster tests, consider using in-memory database (false)
# For integration tests with real MongoDB, set to true
USE_MONGODB=false
# CORS Configuration (permissive for tests)
CORS_ORIGIN=*
# Test-specific settings
# Disable seeding in tests to have full control over test data
DISABLE_SEEDING=true