PHP Rebuild
CI / ci (push) Canceled after 0s

Initial PHP rebuild of the app
This commit is contained in:
Stefan Lazic committed 2026-09-05 08:21:33 +01:00
1 parent 8a2b211069
commit 2ef3654841
690 files changed
+33944 -12046

No files matched your search

-27
View File
@@ -1,27 +0,0 @@
import { afterEach, describe, expect, it, vi } from "vitest";
import { NextRequest } from "next/server";
// The Manager must not load the business Auth.js module even if a stale
// client requests `/api/auth/session`.
vi.mock("@/auth", () => {
throw new Error("Business Auth.js must not load in Manager mode.");
});
import { GET } from "@/app/api/auth/[...nextauth]/route";
describe("Manager business-auth boundary", () => {
const originalManagerMode = process.env.MANAGER_MODE;
afterEach(() => {
if (originalManagerMode === undefined) delete process.env.MANAGER_MODE;
else process.env.MANAGER_MODE = originalManagerMode;
});
it("returns 404 without importing business Auth.js", async () => {
process.env.MANAGER_MODE = "true";
const response = await GET(new NextRequest("https://manager.example.com/api/auth/session"));
expect(response.status).toBe(404);
});
});