Skip to content

Commit

Permalink
Replace resetAllMocks with restore and clear mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-rossati committed Oct 18, 2023
1 parent 9baecd8 commit 9b31cdf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/preview.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ describe('A Preview plugin', () => {
window.removeEventListener(event, listener);
}

jest.resetAllMocks();
jest.restoreAllMocks();
jest.clearAllMocks();
});

const tokenData = {
Expand Down

0 comments on commit 9b31cdf

Please sign in to comment.