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;