diff --git a/app/layout.massive-scaling.test.tsx b/app/layout.massive-scaling.test.tsx
new file mode 100644
index 000000000..3ab34a8d9
--- /dev/null
+++ b/app/layout.massive-scaling.test.tsx
@@ -0,0 +1,92 @@
+import React from 'react';
+import { render, screen } from '@testing-library/react';
+import { describe, expect, it, vi } from 'vitest';
+import RootLayout from './layout';
+
+vi.mock('next/font/google', () => ({
+ Inter: () => ({ className: 'inter-font' }),
+}));
+
+vi.mock('@vercel/analytics/next', () => ({
+ Analytics: () =>
,
+}));
+
+vi.mock('./components/navbar', () => ({
+ default: () => ,
+}));
+
+vi.mock('@/components/BrandParticles', () => ({
+ default: () => ,
+}));
+
+vi.mock('@/components/ReturnToTop', () => ({
+ default: () => ,
+}));
+
+vi.mock('./components/ScrollRestoration', () => ({
+ default: () => ,
+}));
+
+vi.mock('./providers', () => ({
+ Providers: ({ children }: { children: React.ReactNode }) => (
+ {children}
+ ),
+}));
+
+vi.mock('@/components/AnimatedCursor', () => ({
+ default: () => ,
+}));
+
+vi.mock('@/components/KonamiEasterEgg', () => ({
+ default: () => ,
+}));
+
+describe('Layout - Massive Data Sets and Extreme High Bounds Scaling', () => {
+ it('renders thousands of child elements without layout breakage', () => {
+ const massiveChildren = Array.from({ length: 5000 }, (_, i) => (
+ Contributor {i}
+ ));
+ render({massiveChildren});
+
+ expect(screen.getByText('Contributor 0')).toBeInTheDocument();
+ expect(screen.getByText('Contributor 4999')).toBeInTheDocument();
+ });
+
+ it('handles extremely large text content without crashing', () => {
+ const hugeText = 'A'.repeat(100000);
+ render(
+
+ {hugeText}
+
+ );
+ expect(screen.getByText(hugeText)).toBeInTheDocument();
+ });
+
+ it('renders all layout shell components under massive child load', () => {
+ const massiveChildren = Array.from({ length: 2000 }, (_, i) => Activity log {i}
);
+ render({massiveChildren});
+
+ expect(screen.getByTestId('mock-navbar')).toBeInTheDocument();
+ expect(screen.getByTestId('mock-providers')).toBeInTheDocument();
+ expect(screen.getByTestId('mock-return-to-top')).toBeInTheDocument();
+ });
+
+ it('renders nested large structures correctly without overflow', () => {
+ const nestedContent = Array.from({ length: 1000 }, (_, i) => (
+
+ User {i}
+
+ ));
+ render({nestedContent});
+
+ expect(screen.getByText('User 0')).toBeInTheDocument();
+ expect(screen.getByText('User 999')).toBeInTheDocument();
+ });
+
+ it('renders without crashing under extreme load of 10000 elements', () => {
+ const extremeContent = Array.from({ length: 10000 }, (_, i) => Record {i}
);
+ expect(() => {
+ render({extremeContent});
+ }).not.toThrow();
+ });
+});