Reorganize repo structure and standards references
This commit is contained in:
1 parent
3cb93a81be
commit
be2054274d
5885 files changed
+2588
-195
No files matched your search
+16
@@ -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