Skip to content

Commit

Permalink
attempted test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarkowsky committed Oct 2, 2024
1 parent 7a5aa3e commit 930f156
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions react-app/src/components/form/AutocompleteField.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ jest.mock('react-hook-form', () => ({
}),
}));

jest.mock('@mui/utils', () => ({
...jest.requireActual('@mui/utils'),
getReactNodeRef: () => null,
}));

describe('', () => {
it('should render', () => {
render(
Expand Down
5 changes: 5 additions & 0 deletions react-app/src/components/layout/Footer.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ jest.mock('@mui/material', () => ({
}),
}));

jest.mock('@mui/utils', () => ({
...jest.requireActual('@mui/utils'),
getReactNodeRef: () => null,
}));

describe('Footer.tsx', () => {
it('should match the existing snapshot', () => {
const tree = create(<Footer />).toJSON();
Expand Down

0 comments on commit 930f156

Please sign in to comment.