Issue:
When conducting unit tests using with vitest, testing-library and vue-tippy, I've encountered an unexpected behavior related to the tooltip's appearance.
Description:
We're utilizing vue-tippy in our project, where we pass the tooltip content using the <slot name="content">. In our unit tests, which employ the testing-library, we observed that the tooltip does not display. I've tracked the issue to this specific line of code.
Issue: When conducting unit tests using with
vitest
,testing-library
andvue-tippy
, I've encountered an unexpected behavior related to the tooltip's appearance.Description: We're utilizing
vue-tippy
in our project, where we pass the tooltip content using the<slot name="content">
. In our unit tests, which employ the testing-library, we observed that the tooltip does not display. I've tracked the issue to this specific line of code.Our Code:
Temporary Fix: As a workaround in our unit tests, overwriting the
onShow
prop as shown below makes the tooltip appear:Could you provide some insights into this behavior? Is there something I might be overlooking or is this a potential issue with the library?
Thank you in advance!