Reactjs – How to test useFormContext(react-hook-form) using jest
I have a CDOB component and a DOB component that are using Mds form elements and react-hook-form's useFormContext. I want to write a test case for the useFormContext methods such as watch. Here is the code for the components: export…