Files
calendar/apps/web/test/lib/pagesAndRewritePaths.test.ts
T

43 lines
910 B
TypeScript

import { it, expect, describe } from "vitest";
import { pages } from "../../pagesAndRewritePaths.js";
describe("pagesAndRewritePaths", () => {
describe("beforeFiles must exclude routes in pages/app router", () => {
const BEFORE_REWRITE_EXCLUDE_PAGES = [
"apps",
"availability",
"booking",
"connect-and-join",
"enterprise",
"error",
"getting-started",
"insights",
"maintenance",
"more",
"not-found",
"reschedule",
"settings",
"teams",
"upgrade",
"video",
"workflows",
"bookings",
"event-types",
"icons",
"org",
"payment",
"routing-forms",
"signup",
"team",
"d",
];
it("should include all required routes", () => {
BEFORE_REWRITE_EXCLUDE_PAGES.forEach((route) => {
expect(pages).toContain(route);
});
});
});
});