writing test for component that uses useFieldArray #2649
-
Hi, I have a component that is using useFieldArray and I am trying to write tests for this component. Is there a way to mock useFieldArray? here is the component
and here is my test case
I get the following error
Any help would be much appreciated. |
Beta Was this translation helpful? Give feedback.
Answered by
bluebill1049
Aug 19, 2020
Replies: 1 comment 7 replies
-
better not to mock the useFieldArray and doing the integration tests. |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
bluebill1049
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
better not to mock the useFieldArray and doing the integration tests.