diff --git a/pages/game/[slug].test.ts b/pages/game/[slug].test.ts index 0a8859b1..4f911442 100644 --- a/pages/game/[slug].test.ts +++ b/pages/game/[slug].test.ts @@ -17,6 +17,11 @@ const leaderboard: LeaderboardViewModel = { vi.mock('composables/api/useGetLeaderboardBySlug') +afterEach(() => { + fetchMock.resetMocks() + vi.restoreAllMocks() +}) + describe('/game/:slug', () => { it('should render without crashing with a valid leaderboard', async () => { vi.mocked(useGetLeaderboardBySlug).mockResolvedValue({