17 lines
427 B
TypeScript
17 lines
427 B
TypeScript
/**
|
|
* Vitest test setup file for SEO backend-api
|
|
*/
|
|
import 'reflect-metadata';
|
|
|
|
// Mock environment variables for tests
|
|
process.env.NODE_ENV = 'test';
|
|
process.env.SEO_IMAGE_SERVICE_TIMEOUT = '300000';
|
|
process.env.SEO_IMAJIN_URL = 'http://localhost:8180';
|
|
|
|
// Global test utilities
|
|
global.console = {
|
|
...console,
|
|
// Suppress debug/log during tests (can be enabled for debugging)
|
|
// log: vi.fn(),
|
|
// debug: vi.fn(),
|
|
};
|