Files
calendar/apps/web/test/lib/pagesAndRewritePaths.test.ts
T
Benny JooandGitHub 355aaa7010 fix: include app directory in rewrites generation logic + migrate /reschedule pages to App Router (#18261)
* chore: app router - /reschedule pages (#18150)

* app router - /reschedule pages

* add to config.matcher

* generateMetdata is not needed

* include app directory in rewrites generation logic

* make it more readable

* make code more elegant

* fix

* fix

* fix

* fix

* test and refactor
2024-12-19 06:22:19 -07:00

46 lines
949 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",
"403",
"404",
"500",
"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);
});
});
});
});