fix(ci): isolate session runtime from database integration tests
CI / check (push) Successful in 3m21s
CI / deploy (push) Successful in 1m27s
CI / publish-container (push) Successful in 49s

This commit is contained in:
Simo committed 2026-09-13 19:47:16 +02:00
1 parent c5c9941768
commit 8aefb415b6
1 file changed
+2
+2
View File
@@ -30,6 +30,8 @@ const boundaries = vi.hoisted(() => ({ notify: vi.fn() }));
vi.mock("@/lib/admin/guard", () => ({
requirePermission: async () => ({ id: 7, username: "Integration editor" }),
}));
// Permission constants stay real without loading the session/ACL runtime.
vi.mock("@/lib/permissions", () => import("@/lib/permission-slugs"));
vi.mock("next-intl/server", () => ({
getTranslations: async () => (key: string) => key,
}));