Track HiveGrid Cloud planning reference

This commit is contained in:
david committed 2026-06-26 20:48:01 +02:00
1 parent b3d5ea6764
commit e341c5938a
5784 files changed
+1104929 -3

No files matched your search

@@ -0,0 +1,17 @@
import { readFileSync } from "node:fs";
import { join } from "node:path";
import { describe, expect, it } from "vitest";
const repoRoot = process.cwd();
describe("row share public route boundary", () => {
it("does not accept public share targets after public row routes were removed", () => {
const routeSource = readFileSync(join(repoRoot, "apps/web/app/modules/rows/routes/Rows_Share.server.ts"), "utf8");
const generatedShareSource = readFileSync(join(repoRoot, "apps/web/app/modules/codeGenerator/templates/routes/api/CodeTemplate.Routes.Share.Api.ts"), "utf8");
expect(routeSource).toContain('const allowedShareTypes = ["tenant", "user", "role", "group"] as const');
expect(routeSource).not.toContain('"tenant" | "user" | "role" | "group" | "public"');
expect(generatedShareSource).toContain('const allowedShareTypes = ["tenant", "user", "role", "group"] as const');
expect(generatedShareSource).not.toContain('"tenant" | "user" | "role" | "group" | "public"');
});
});