Move CMS SQL to drizzle/migrations, drop prisma packages/schema, wire drizzle-kit scripts, and regenerate schema names from src/db/schema.ts. Co-authored-by: Cursor <[email protected]>
16 lines
537 B
TypeScript
16 lines
537 B
TypeScript
import { readFileSync } from "node:fs";
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
describe("proxy authentication boundary", () => {
|
|
it("uses a database-free Auth.js decoder", () => {
|
|
const proxy = readFileSync("src/proxy.ts", "utf8");
|
|
const proxyAuth = readFileSync("src/lib/proxy-auth.ts", "utf8");
|
|
|
|
expect(proxy).toContain('from "@/lib/proxy-auth"');
|
|
expect(proxy).not.toContain('from "@/lib/auth"');
|
|
expect(proxyAuth).not.toMatch(
|
|
/from\s+["'][^"']*(db|site-settings|credentials|prisma)[^"']*["']/i,
|
|
);
|
|
});
|
|
});
|