Skip to content

Commit

Permalink
[KAN-46] chore: display name 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hakyoung12 committed Oct 15, 2024
1 parent f00b49c commit 5c6e1fe
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/app/components/Gnb/Gnb.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,13 @@ jest.mock('./UserStatus', () => {
});

// ToggleTheme 컴포넌트 모킹
jest.mock('./ToggleTheme', () => () => (
<button data-testid='toggle-theme'>Toggle Theme</button>
));
jest.mock('./ToggleTheme', () => {
const MockToggleTheme = () => (
<button data-testid='toggle-theme'>Toggle Theme</button>
);
MockToggleTheme.displayName = 'MockToggleTheme';
return MockToggleTheme;
});

// TokenExpirationTimerLayout 컴포넌트 모킹
jest.mock('./TokenExpirationTimerLayout', () => {
Expand Down

0 comments on commit 5c6e1fe

Please sign in to comment.