diff --git a/src/app/components/CardList/CardList.test.tsx b/src/app/components/CardList/CardList.test.tsx index a381be4..4bf6ec7 100644 --- a/src/app/components/CardList/CardList.test.tsx +++ b/src/app/components/CardList/CardList.test.tsx @@ -40,6 +40,14 @@ jest.mock('@/public/icons', () => ({ IconPerson: () =>
, })); +// 함수 모킹 +jest.mock('@/app/(main)/gatherings/_helpers/getTagMessage', () => + jest.fn().mockReturnValue('오늘 15시 마감'), +); +jest.mock('@/app/(main)/gatherings/_helpers/isClosingTagVisible', () => + jest.fn().mockReturnValue(true), +); + // 기본 렌더링 테스트 describe('CardList Component', () => { const MOCK_DATA = { @@ -92,8 +100,7 @@ describe('Tag Component Render', () => { }; render(