diff --git a/frontend/app/__tests__/layout.test.tsx b/frontend/app/__tests__/layout.test.tsx new file mode 100644 index 0000000..dc625b3 --- /dev/null +++ b/frontend/app/__tests__/layout.test.tsx @@ -0,0 +1,49 @@ +import React from 'react'; +import { render, screen } from '@testing-library/react'; +import RootLayout, { metadata } from '../layout'; + +// Mock the ThemeProvider and Providers +jest.mock('@/lib/theme', () => ({ + ThemeProvider: ({ children }: { children: React.ReactNode }) =>
{children}
, +})); + +jest.mock('../providers', () => ({ + Providers: ({ children }: { children: React.ReactNode }) =>
{children}
, +})); + +// Mock Next.js Script component +jest.mock('next/script', () => { + return function Script(props: any) { + return