CI : workflow validate.yml, manifeste ci.required:true, garde VITEST, tests isolés

This commit is contained in:
Manus CI
2026-08-21 11:15:58 +00:00
parent de797c1c0b
commit 295bb26378
5 changed files with 63 additions and 6 deletions

View File

@@ -393,4 +393,7 @@ async function startServer() {
}, 5000); // Attendre 5s que le serveur soit prêt
}
startServer().catch(console.error);
// Vitest ne doit jamais démarrer un serveur HTTP.
if (!process.env.VITEST) {
startServer().catch(console.error);
}

View File

@@ -1,11 +1,13 @@
import { describe, it, expect, beforeAll } from "vitest";
const describeIntegration = process.env.DATABASE_URL ? describe : describe.skip;
import {
getLlmFieldsConfigByUser,
upsertLlmFieldConfig,
initializeDefaultLlmFields
} from "./db";
describe("LLM Fields Configuration", () => {
describeIntegration("LLM Fields Configuration", () => {
const testUserId = 99999; // Use a high ID to avoid conflicts
beforeAll(async () => {