feat: auth, first-run setup, login

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
YugonitoandClaude Opus 5.5 committed 2026-10-27 18:12:41 +01:00
1 parent d722c0034c
commit 23f3192cd0
28 files changed
+648 -160

No files matched your search

+17 -8
View File
@@ -1,12 +1,21 @@
import { defineConfig } from "vitest/config";
import { loadEnv } from "vite";
import path from "node:path";
export default defineConfig({
resolve: { alias: { "@": path.resolve(import.meta.dirname, "src") } },
test: {
environment: "node",
include: ["tests/**/*.test.ts"],
// Server tests share one MariaDB test database: run files sequentially.
fileParallelism: false,
},
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), "");
return {
resolve: { alias: { "@": path.resolve(import.meta.dirname, "src") } },
test: {
environment: "node",
include: ["tests/**/*.test.ts"],
// Les tests serveur partagent une base MariaDB de test : fichiers exécutés en série.
fileParallelism: false,
globalSetup: ["tests/global-setup.ts"],
env: {
DATABASE_URL: env.TEST_DATABASE_URL ?? "",
SESSION_SECRET: env.SESSION_SECRET ?? "test-secret-test-secret-test-secret-xx",
},
},
};
});