Skip to content

Commit 4a0efc0

Browse files
committed
test(predict): restore mocks in afterEach to prevent Date.now leak
1 parent 5ed5e51 commit 4a0efc0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/components/UI/Predict/hooks/useLiveMarketPrices.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ describe('useLiveMarketPrices', () => {
5454

5555
afterEach(() => {
5656
jest.useRealTimers();
57+
jest.restoreAllMocks();
5758
});
5859

5960
describe('subscription management', () => {

0 commit comments

Comments
 (0)