Files
spotlightcam/backend/jest.setup.js

12 lines
355 B
JavaScript
Raw Permalink Normal View History

/**
* Jest setup file - runs before all tests
* Loads environment variables from .env.development
*/
require('dotenv').config({ path: '.env.development' });
// 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;