Updating code to use new version of react-router.

This commit is contained in:
Roland 2025-12-07 11:54:20 -07:00
parent 303810476e
commit 8ea3ea8a67
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
28 changed files with 34 additions and 52 deletions

View file

@ -4,8 +4,8 @@ import userEvent from '@testing-library/user-event';
import {DomainEditPage} from './Archive';
// Mock useParams to return domain ID
jest.mock('react-router-dom', () => ({
...jest.requireActual('react-router-dom'),
jest.mock('react-router', () => ({
...jest.requireActual('react-router'),
useParams: () => ({domainId: '1'}),
useNavigate: () => jest.fn(),
}));