Skip to content

Commit

Permalink
Add RHF mock to fix page unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
benmartin-coforma committed Jan 15, 2025
1 parent a111a5d commit 92ff026
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions services/ui-src/src/components/report/Page.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ mockedUseStore.mockReturnValue(mockUseStore);
jest.mock("react-hook-form", () => ({
useFormContext: () => ({
register: jest.fn(),
getValues: jest.fn(),
}),
}));

Expand Down

0 comments on commit 92ff026

Please sign in to comment.