2025-11-30 19:18:09 +01:00
|
|
|
/**
|
|
|
|
|
* Jest setup file - runs before all tests
|
|
|
|
|
* Loads environment variables from .env.development
|
|
|
|
|
*/
|
|
|
|
|
require('dotenv').config({ path: '.env.development' });
|
2025-12-06 13:11:31 +01:00
|
|
|
|
|
|
|
|
// Set NODE_ENV to test for test-specific behavior
|
|
|
|
|
process.env.NODE_ENV = 'test';
|
|
|
|
|
|
|
|
|
|
// Unset TURNSTILE_SECRET_KEY for tests (CAPTCHA not needed in tests)
|
|
|
|
|
delete process.env.TURNSTILE_SECRET_KEY;
|