Skip to content

Commit e21034c

Browse files
committed
fix: flaky test
1 parent 4e7736b commit e21034c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/webapp/__tests__/MostUpvotedPage.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ import { mockGraphQL } from '@dailydotdev/shared/__tests__/helpers/graphql';
1616
import { TestBootProvider } from '@dailydotdev/shared/__tests__/helpers/boot';
1717
import Upvoted from '../pages/upvoted';
1818

19+
afterEach(() => {
20+
nock.cleanAll();
21+
});
22+
1923
beforeEach(() => {
2024
jest.restoreAllMocks();
2125
jest.clearAllMocks();

0 commit comments

Comments
 (0)