test: add LLM service tests

Made-with: Cursor
This commit is contained in:
Anton
2026-03-04 15:46:22 +03:00
parent e00f9e197c
commit bef2dc57b5
2 changed files with 230 additions and 0 deletions

View File

@@ -2,4 +2,10 @@ 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';
}
});