fix(ci): isolate session runtime from database integration tests
This commit is contained in:
1 parent
c5c9941768
commit
8aefb415b6
1 file changed
+2
@@ -30,6 +30,8 @@ const boundaries = vi.hoisted(() => ({ notify: vi.fn() }));
|
|||||||
vi.mock("@/lib/admin/guard", () => ({
|
vi.mock("@/lib/admin/guard", () => ({
|
||||||
requirePermission: async () => ({ id: 7, username: "Integration editor" }),
|
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", () => ({
|
vi.mock("next-intl/server", () => ({
|
||||||
getTranslations: async () => (key: string) => key,
|
getTranslations: async () => (key: string) => key,
|
||||||
}));
|
}));
|
||||||
|
|||||||
Reference in new issue
Block a user