17 lines
407 B
TypeScript
Executable file
17 lines
407 B
TypeScript
Executable file
/**
|
|
* Vitest test setup file
|
|
*/
|
|
import 'reflect-metadata';
|
|
|
|
// Mock environment variables for tests
|
|
process.env.NODE_ENV = 'test';
|
|
process.env.STATUS_ADMIN_PASSWORD = 'test-password';
|
|
process.env.STATUS_JWT_SECRET = 'test-jwt-secret';
|
|
|
|
// Global test utilities
|
|
global.console = {
|
|
...console,
|
|
// Suppress debug/log during tests (can be enabled for debugging)
|
|
// log: vi.fn(),
|
|
// debug: vi.fn(),
|
|
};
|