diff --git a/frontend/jest.config.ts b/frontend/jest.config.ts index b23cbf2c..f6b18406 100644 --- a/frontend/jest.config.ts +++ b/frontend/jest.config.ts @@ -171,9 +171,7 @@ const config: Config = { // ], // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped - // testPathIgnorePatterns: [ - // "/node_modules/" - // ], + testPathIgnorePatterns: ['/node_modules/', '/.next/', '/tests/'], // The regexp pattern or array of patterns that Jest uses to detect test files // testRegex: [], diff --git a/frontend/src/components/__tests__/landing/MeetingFormModal.test.tsx b/frontend/src/components/__tests__/landing/MeetingFormModal.test.tsx index fcb1ef29..1981dd98 100644 --- a/frontend/src/components/__tests__/landing/MeetingFormModal.test.tsx +++ b/frontend/src/components/__tests__/landing/MeetingFormModal.test.tsx @@ -37,6 +37,12 @@ jest.mock('@/components/common/Modal', () => { }; }); +jest.mock('@/components/common/Portal', () => { + return function MockPortal({ children }: { children: React.ReactNode }) { + return
{children}
; + }; +}); + describe('MeetingFormModal 컴포넌트 테스트', () => { const closeModal = jest.fn(); const push = jest.fn();