diff --git a/app/layout.tsx b/app/layout.tsx index b2a3746..6302c81 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -146,7 +146,9 @@ export default function RootLayout({ children }: { children: ReactNode }) { -
{children}
+
+ {children} +
); diff --git a/tests/unit/Layout.test.jsx b/tests/unit/Layout.test.jsx index a0f46f4..607a77e 100644 --- a/tests/unit/Layout.test.jsx +++ b/tests/unit/Layout.test.jsx @@ -72,6 +72,17 @@ describe("RootLayout", () => { expect(container).toBeTruthy(); }); + test("caps the page shell at 1920px", () => { + const tree = RootLayout({ children:
Test content
}); + const container = findDescendant( + tree, + (n) => n.type === "div" && n.props?.className?.includes("min-h-screen"), + ); + expect(container.props.className).toContain("max-w-[1920px]"); + expect(container.props.className).toContain("mx-auto"); + expect(container.props.className).toContain("w-full"); + }); + test("renders children directly inside the flex container (no
at root)", () => { const testContent = "This is test content"; const tree = RootLayout({ children:
{testContent}
});