Revert "Merge pull request 'Complete Housekeeping migration and /ase cutover' (#52) from codex/housekeeping-complete into main"
This reverts commit488b6e57c4, reversing changes made tob506b4499a.
This commit is contained in:
1 parent
488b6e57c4
commit
b1ddda66ff
802 files changed
+61370
-76659
No files matched your search
@@ -26,8 +26,37 @@ function createRouteTree(files: readonly string[]): string {
|
||||
}
|
||||
|
||||
describe("discoverLegacyPages", () => {
|
||||
it("returns no routes after the atomic cutover", () => {
|
||||
expect(discoverLegacyPages()).toEqual([]);
|
||||
it("discovers the exact legacy administration inventory", () => {
|
||||
const pages = discoverLegacyPages();
|
||||
|
||||
expect(pages).toHaveLength(137);
|
||||
expect(pages).toContainEqual({
|
||||
surface: "admin",
|
||||
legacyPath: "/admin/users/:id/edit",
|
||||
sourceFile: "src/app/admin/users/[id]/edit/page.tsx",
|
||||
});
|
||||
expect(pages).toContainEqual({
|
||||
surface: "mod",
|
||||
legacyPath: "/mod/cfh/:id",
|
||||
sourceFile: "src/app/mod/cfh/[id]/page.tsx",
|
||||
});
|
||||
});
|
||||
|
||||
it("discovers root administration and moderation routes", () => {
|
||||
expect(discoverLegacyPages()).toEqual(
|
||||
expect.arrayContaining([
|
||||
{
|
||||
surface: "admin",
|
||||
legacyPath: "/admin",
|
||||
sourceFile: "src/app/admin/page.tsx",
|
||||
},
|
||||
{
|
||||
surface: "mod",
|
||||
legacyPath: "/mod",
|
||||
sourceFile: "src/app/mod/page.tsx",
|
||||
},
|
||||
]),
|
||||
);
|
||||
});
|
||||
|
||||
it("discovers root routes in a controlled route tree", () => {
|
||||
|
||||
Reference in new issue
Block a user