Replies: 3 comments 1 reply
-
I have the same problem. I have no idea how to test OnClickOutside. I am using vitest. Any ideas are appreciated. |
Beta Was this translation helpful? Give feedback.
-
Struggled with this too. So here is the solution that I found out.
This will trigger the clickOutside, at least the function from @vueuse/core (did not test the directive or component). |
Beta Was this translation helpful? Give feedback.
-
If you trust that
|
Beta Was this translation helpful? Give feedback.
-
Hi guys,
I create some component that uses onClickOutside, its working fine.
But, how to test it?
In my spec.ts, the onClickOutside is not covered even I have clicked on outside of wrapper.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions