-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjest.setup.js
More file actions
13 lines (11 loc) · 612 Bytes
/
jest.setup.js
File metadata and controls
13 lines (11 loc) · 612 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
/**
* @fileoverview Jest setup file to configure test environment.
* This file sets up dummy environment variables needed for testing
* to prevent errors when modules try to access credentials during import.
*/
// Set dummy Supabase credentials for testing
// These are only used when tests run and are never used in production
process.env.SUPABASE_URL = process.env.SUPABASE_URL || 'https://test.supabase.co';
process.env.SUPABASE_SERVICE_ROLE_KEY = process.env.SUPABASE_SERVICE_ROLE_KEY || 'test-key-1234567890';
// Set any other required environment variables for testing
process.env.NODE_ENV = 'test';