Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
@@ -25,15 +25,28 @@ function flattenRoutes(manifest: RouteManifest) {
|
||||
return flattened;
|
||||
}
|
||||
|
||||
function normalizeRouteFile(file: string) {
|
||||
return file.replaceAll("\\", "/");
|
||||
}
|
||||
|
||||
describe("app route discovery", () => {
|
||||
it("excludes colocated test and spec files from the production route manifest", async () => {
|
||||
const routeFiles = flattenRoutes(await routes).map((entry) => entry.file);
|
||||
const routeFiles = flattenRoutes(await routes).map((entry) => normalizeRouteFile(entry.file));
|
||||
|
||||
expect(routeFiles).not.toEqual(expect.arrayContaining([expect.stringMatching(/\.test\.[tj]sx?$/), expect.stringMatching(/\.spec\.[tj]sx?$/)]));
|
||||
expect(routeFiles).not.toEqual(expect.arrayContaining([expect.stringMatching(/\.server\.[tj]sx?$/)]));
|
||||
expect(routeFiles).toEqual(expect.arrayContaining(["routes/forgot-password.tsx", "routes/invitation.$id.tsx"]));
|
||||
expect(routeFiles).toEqual(expect.arrayContaining(["routes/401.tsx", "routes/403.tsx", "routes/404.tsx", "routes/500.tsx"]));
|
||||
expect(routeFiles).toEqual(expect.arrayContaining(["routes/plan-required.$tenant.tsx", "routes/feature-disabled.tsx"]));
|
||||
expect(routeFiles).toEqual(expect.arrayContaining(["routes/[.]well-known.oauth-authorization-server.ts"]));
|
||||
});
|
||||
|
||||
it("exposes OAuth authorization-server metadata under .well-known", async () => {
|
||||
const routePaths = flattenRoutes(await routes)
|
||||
.map((entry) => entry.path)
|
||||
.filter((path): path is string => typeof path === "string");
|
||||
|
||||
expect(routePaths).toEqual(expect.arrayContaining([".well-known/oauth-authorization-server"]));
|
||||
});
|
||||
|
||||
it("exposes promoted tenant app routes without legacy /app prefixes", async () => {
|
||||
@@ -61,7 +74,7 @@ describe("app route discovery", () => {
|
||||
|
||||
it("does not expose the removed public pricing marketing routes", async () => {
|
||||
const flattenedRoutes = flattenRoutes(await routes);
|
||||
const routeFiles = flattenedRoutes.map((entry) => entry.file);
|
||||
const routeFiles = flattenedRoutes.map((entry) => normalizeRouteFile(entry.file));
|
||||
const routePaths = flattenedRoutes
|
||||
.map((entry) => entry.path)
|
||||
.filter((path): path is string => typeof path === "string");
|
||||
@@ -73,7 +86,7 @@ describe("app route discovery", () => {
|
||||
|
||||
it("registers product-core tenant routes and keeps disabled plugin route trees out of the core app", async () => {
|
||||
const flattenedRoutes = flattenRoutes(await routes);
|
||||
const routeFiles = flattenedRoutes.map((entry) => entry.file);
|
||||
const routeFiles = flattenedRoutes.map((entry) => normalizeRouteFile(entry.file));
|
||||
const routePaths = flattenedRoutes
|
||||
.map((entry) => entry.path)
|
||||
.filter((path): path is string => typeof path === "string");
|
||||
@@ -90,7 +103,9 @@ describe("app route discovery", () => {
|
||||
);
|
||||
expect(routeFiles).toEqual(
|
||||
expect.arrayContaining([
|
||||
"routes/app.$tenant/crm.tsx",
|
||||
// R-P6: the entity-builder CRM route tree was removed; the typed CRM
|
||||
// lives under app.$tenant/contacts.* now.
|
||||
"routes/app.$tenant/contacts._index.tsx",
|
||||
"routes/app.$tenant/email-marketing.tsx",
|
||||
"routes/app.$tenant/__workflows/workflow-engine.tsx",
|
||||
])
|
||||
@@ -119,12 +134,12 @@ describe("app route discovery", () => {
|
||||
":tenant/widgets",
|
||||
])
|
||||
);
|
||||
expect(routePaths).toEqual(expect.arrayContaining(["crm", "email-marketing", "workflow-engine"]));
|
||||
expect(routePaths).toEqual(expect.arrayContaining(["email-marketing", "workflow-engine"]));
|
||||
});
|
||||
|
||||
it("does not keep internal workflow API proxy targets registered", async () => {
|
||||
const flattenedRoutes = flattenRoutes(await routes);
|
||||
const routeFiles = flattenedRoutes.map((entry) => entry.file);
|
||||
const routeFiles = flattenedRoutes.map((entry) => normalizeRouteFile(entry.file));
|
||||
const routePaths = flattenedRoutes
|
||||
.map((entry) => entry.path)
|
||||
.filter((path): path is string => typeof path === "string");
|
||||
@@ -151,7 +166,7 @@ describe("app route discovery", () => {
|
||||
|
||||
it("does not expose removed fake/demo admin entity routes", async () => {
|
||||
const flattenedRoutes = flattenRoutes(await routes);
|
||||
const routeFiles = flattenedRoutes.map((entry) => entry.file);
|
||||
const routeFiles = flattenedRoutes.map((entry) => normalizeRouteFile(entry.file));
|
||||
const routePaths = flattenedRoutes
|
||||
.map((entry) => entry.path)
|
||||
.filter((path): path is string => typeof path === "string");
|
||||
|
||||
Reference in new issue
Block a user