Files
samreshu_backend/tests/setup.ts
Anton bef2dc57b5 test: add LLM service tests
Made-with: Cursor
2026-03-04 15:46:22 +03:00

12 lines
327 B
TypeScript

import { beforeAll, vi } from 'vitest';
beforeAll(() => {
vi.stubEnv('NODE_ENV', 'test');
if (!process.env.DATABASE_URL) {
process.env.DATABASE_URL = 'postgresql://test:test@localhost:5432/test';
}
if (!process.env.JWT_SECRET) {
process.env.JWT_SECRET = 'test-secret-min-32-chars-long-for-validation';
}
});