Förberedelse fas 2: testmiljö fix + analytics tracker i mobilappen

This commit is contained in:
Sven (AAMOS AI)
2026-08-06 16:46:30 +07:00
parent 13c6dcacd8
commit 03e30755dc
11 changed files with 251 additions and 11 deletions
+17
View File
@@ -0,0 +1,17 @@
import { defineConfig } from "vitest/config";
import { config } from "dotenv";
import path from "node:path";
import { fileURLToPath } from "node:url";
const __dirname = path.dirname(fileURLToPath(import.meta.url));
// Load root .env so database tests receive DATABASE_URL / TEST_DATABASE_URL
// when running `pnpm test` from the workspace root.
config({ path: path.resolve(__dirname, "../../.env") });
export default defineConfig({
test: {
environment: "node",
globals: false,
},
});