diff --git a/src/__mocks__/shared-mocks.tsx b/src/__mocks__/shared-mocks.tsx index f2b4f58..3bb6ae8 100644 --- a/src/__mocks__/shared-mocks.tsx +++ b/src/__mocks__/shared-mocks.tsx @@ -109,6 +109,8 @@ export const mockLucideReact = () => { LogOut: () => , Home: () => , FileText: () => , + Briefcase: () => , + Package: () => , Image: () => , Save: () => , Trash2: () => , diff --git a/src/components/layout/mobile-tab-bar.test.tsx b/src/components/layout/mobile-tab-bar.test.tsx index 06d4d70..be511d0 100644 --- a/src/components/layout/mobile-tab-bar.test.tsx +++ b/src/components/layout/mobile-tab-bar.test.tsx @@ -9,12 +9,14 @@ jest.mock('next/navigation', () => ({ jest.mock('framer-motion', () => ({ motion: { - div: ({ children, ...props }: any) =>
{children}
, + div: ({ children, ...props }: Record) =>
{children}
, }, })); jest.mock('next/link', () => { - return ({ children, href }: any) => {children}; + const MockLink = ({ children, href }: Record) => {children}; + MockLink.displayName = 'MockLink'; + return MockLink; }); describe('MobileTabBar', () => { @@ -40,7 +42,7 @@ describe('MobileTabBar', () => { it('should render tab icons', () => { render(); - const icons = document.querySelectorAll('svg'); + const icons = document.querySelectorAll('[data-testid]'); expect(icons.length).toBeGreaterThan(0); }); });