Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
modify: 중복된 mock clearing 코드 제거
  • Loading branch information
ooheunda committed Jul 26, 2025
commit 3a96087a7f820d5a0f009df673f6c1e25ca35ac3
8 changes: 0 additions & 8 deletions src/services/__test__/leaderboard.service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ describe('LeaderboardService', () => {
],
};

beforeEach(() => {
jest.clearAllMocks();
});

it('응답 형식에 맞게 변환된 사용자 리더보드 데이터를 반환해야 한다', async () => {
mockCache.get.mockResolvedValue(null);
mockRepo.getUserLeaderboard.mockResolvedValue(mockRawResult);
Expand Down Expand Up @@ -214,10 +210,6 @@ describe('LeaderboardService', () => {
],
};

beforeEach(() => {
jest.clearAllMocks();
});

it('응답 형식에 맞게 변환된 게시물 리더보드 데이터를 반환해야 한다', async () => {
mockCache.get.mockResolvedValue(null);
mockRepo.getPostLeaderboard.mockResolvedValue(mockRawResult);
Expand Down