From 6cd07479b83b2faffc4bd5b9d642c079e5a7aef2 Mon Sep 17 00:00:00 2001 From: Sergei Maertens Date: Sun, 17 Nov 2024 20:54:13 +0100 Subject: [PATCH] :alien: [#724] Replace jest mocks with vitest mocks --- src/components/FormStart/tests.spec.jsx | 2 +- src/components/Summary/test.spec.jsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/FormStart/tests.spec.jsx b/src/components/FormStart/tests.spec.jsx index bed48cc90..b31b0940c 100644 --- a/src/components/FormStart/tests.spec.jsx +++ b/src/components/FormStart/tests.spec.jsx @@ -10,7 +10,7 @@ import useQuery from 'hooks/useQuery'; import FormStart from '.'; import {testForm, testLoginForm} from './fixtures'; -jest.mock('hooks/useQuery'); +vi.mock('hooks/useQuery'); let scrollIntoViewMock = jest.fn(); window.HTMLElement.prototype.scrollIntoView = scrollIntoViewMock; diff --git a/src/components/Summary/test.spec.jsx b/src/components/Summary/test.spec.jsx index 70191e9f0..d4b9bbc56 100644 --- a/src/components/Summary/test.spec.jsx +++ b/src/components/Summary/test.spec.jsx @@ -31,8 +31,8 @@ const SUBMISSION = { isAuthenticated: false, }; -jest.mock('react-use'); -jest.mock('hooks/useRefreshSubmission'); +vi.mock('react-use'); +vi.mock('hooks/useRefreshSubmission'); let container = null; let root = null;