Files
EpicNext-Cms/src/lib/proxy-auth-contract.test.ts
T
openhands 7c1f8d709e
CI / check (push) Successful in 23s
CI / release (push) Skipped
CI / deploy (push) Successful in 1m20s
perf(html): replace proxyAuth with getToken to remove set-cookie; add Cache-Control per auth state
2026-08-01 18:37:19 +02:00

14 lines
475 B
TypeScript

import { readFileSync } from "node:fs";
import { describe, expect, it } from "vitest";
describe("proxy authentication boundary", () => {
it("uses getToken directly without database-dependent Auth.js config", () => {
const proxy = readFileSync("src/proxy.ts", "utf8");
expect(proxy).not.toContain('from "@/lib/proxy-auth"');
expect(proxy).not.toContain('from "@/lib/auth"');
expect(proxy).toContain("getToken");
expect(proxy).toContain("next-auth/jwt");
});
});