unit tests fixin
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m43s

This commit is contained in:
2025-11-22 10:30:33 -08:00
parent 3081e3998a
commit f64eb42233
3 changed files with 29 additions and 6 deletions

21
.env.test Normal file
View File

@@ -0,0 +1,21 @@
# .env.test
# Environment variables for the test environment.
# This file is loaded by `tsx` when running the `npm run test:integration` command.
# --- Test Database Connection ---
# IMPORTANT: These should point to your *test* database, not production.
# These values will be used by the backend server when it starts for integration tests.
DB_HOST=localhost
DB_PORT=5432
DB_USER=flyer_crawler_user
DB_PASSWORD=WoA2kFtqqHdTLqdZsoCa
DB_DATABASE=flyer-crawler-test
DB_NAME=flyer-crawler-test
# --- Test JWT Secret ---
JWT_SECRET=a-secure-secret-for-testing-only
# --- Other Test Variables ---
# These can be dummy values if the feature is not being tested directly.
FRONTEND_URL=http://localhost:3000
GEMINI_API_KEY=dummy-api-key-for-testing