Closed GustavoBonfimS closed 1 year ago
hey @GustavoBonfimS! thanks for your patience with this reply. are you facing any difficulties with this task?
modalfy doesn't have test covering yet indeed. when it comes to what you were trying to achieve, here you can see what the modal
prop each Modal
receives looks like, hope that will help you with your mock!
I am trying to test my modal components but i don
t know how to mock the
modalprop with
closeModaland
getParam` with Jest and Typescript.my test code:
my modal component:
The solution was to stop using typing in the component's Props to be able to make a Mock, but this way is not ideal to solve the problem.