CI : workflow validate.yml, manifeste ci.required:true, garde VITEST, tests isolés
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user