Skip to content

Commit

Permalink
👽 [#724] Replace jest mocks with vitest mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-maertens committed Nov 17, 2024
1 parent 8620c3b commit 6cd0747
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/FormStart/tests.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions src/components/Summary/test.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6cd0747

Please sign in to comment.