From 9b31cdfa56646f4663d74161b8a09c9bd97a5f56 Mon Sep 17 00:00:00 2001 From: Denis Rossati Ramos Date: Wed, 18 Oct 2023 16:04:38 -0300 Subject: [PATCH] Replace resetAllMocks with restore and clear mocks --- test/preview.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/preview.test.ts b/test/preview.test.ts index 1f480fa0..e22e50f7 100644 --- a/test/preview.test.ts +++ b/test/preview.test.ts @@ -77,7 +77,8 @@ describe('A Preview plugin', () => { window.removeEventListener(event, listener); } - jest.resetAllMocks(); + jest.restoreAllMocks(); + jest.clearAllMocks(); }); const tokenData = {