FactuGES_ERP/apps/server/.env.e2e.example
David da362fef64 feat(e2e): implement end-to-end testing framework with database preparation and lifecycle management
- Add E2ESchemaDatabaseConfig interface for database configuration validation.
- Implement assertE2ESchemaDatabaseConfig function to enforce schema requirements.
- Create prepareE2ESchema function to handle schema preparation and initialization.
- Develop E2E lifecycle management functions to provision, prepare, and run tests.
- Introduce Docker Compose setup for E2E database environment.
- Add Playwright configuration for E2E testing.
- Implement various test cases to validate E2E schema preparation and lifecycle.
- Create utility functions for environment variable management and database assertions.
- Establish smoke tests to verify initial data setup and integrity.
2026-09-22 16:49:08 +02:00

37 lines
986 B
Plaintext

NODE_ENV=test
PORT=3002
API_BASE_PATH=/api/v1
FRONTEND_URL=http://127.0.0.1:5173
TRUST_PROXY=0
TIMEZONE=Europe/Madrid
DB_DIALECT=mysql
DB_HOST=provided-by-e2e-launcher
DB_PORT=1
DB_NAME=factuges_erp_e2e_placeholder
DB_USER=provided-by-e2e-launcher
DB_PASS=provided-by-e2e-launcher
DB_LOGGING=false
DB_SSL=false
DB_SYNC_MODE=none
WARMUP_TIMEOUT_MS=30000
WARMUP_STRICT=false
JWT_SECRET=replace-with-a-dedicated-e2e-secret-of-at-least-32-characters
JWT_ACCESS_EXPIRATION=15m
JWT_REFRESH_EXPIRATION=7d
TEMPLATES_PATH=./storage/e2e/templates
DOCUMENTS_PATH=./storage/e2e/documents
SIGNED_DOCUMENTS_PATH=./storage/e2e/signed-documents
FASTREPORT_BIN=replace-with-fastreport-binary-path
SIGNING_SERVICE_URL=http://127.0.0.1:3003
SIGNING_SERVICE_METHOD=POST
SIGNING_SERVICE_TIMEOUT_MS=5000
SIGNING_SERVICE_MAX_RETRIES=0
COMPANY_CERTIFICATES_PATH=../../tests/e2e/fixtures/company-certificates.json
E2E_USER_EMAIL=replace-with-e2e-user-email
E2E_USER_PASSWORD=replace-with-e2e-user-password