Track HiveGrid Cloud planning reference
This commit is contained in:
1 parent
b3d5ea6764
commit
e341c5938a
5784 files changed
+1104929
-3
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import { existsSync, readFileSync } from "node:fs";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import path from "node:path";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
const publicRoutesDirectory = __dirname;
|
||||
const noCodeViewsSource = readFileSync(path.resolve(__dirname, "../../utils/helpers/NoCodeViewsHelper.tsx"), "utf8");
|
||||
|
||||
describe("public route boundary", () => {
|
||||
it("keeps legacy unauthenticated row sharing out of the core runtime", () => {
|
||||
expect(existsSync(`${publicRoutesDirectory}/$entity.$id.tsx`)).toBe(false);
|
||||
expect(noCodeViewsSource).not.toContain("Public URL");
|
||||
expect(noCodeViewsSource).not.toContain("`/public/${entity.slug}/${rows[0].id}`");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user