-
Notifications
You must be signed in to change notification settings - Fork 272
Description
Describe the bug
From the documentation, isVisible() should return false if v-show is false. But it is always returning true in the test. Although it is working perfectly in the browser.
To Reproduce
Here is the repo to reproduce the issue : https://github.com/rakibullahsazib/vitest-playground/tree/test-utils-visible-issue
Inside /src/components/visible folder is the Visible.vue component and the test file for it. Run yarn test to see test fail.
Expected behavior
isVisible() should return false when v-show is false.
Related information:
@vue/test-utils
version: 2.0.0-rc.18Vue
version: 3.2.25node
version: 3.2.25yarn
version: 8.1.2vitest
version: 0.7.12
Additional context
I am not sure, but does it have anything to do with vitest. By the way, I have already checked the closed issue with similar problem. But you can see in the repo that the my code has no complex structure and yet it is causing the issue.