You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Vue 2.7.14, @testing-library with vue-test-utils 1.3.4
When I try to test an attribute on a stubbed component, if the value is boolean 'false', the attribute is not render in the html, so it can't be tested.
Hello,
I'm using Vue 2.7.14, @testing-library with vue-test-utils 1.3.4
When I try to test an attribute on a stubbed component, if the value is boolean 'false', the attribute is not render in the html, so it can't be tested.
Subject of the issue
test of an attribute for a stubbed component.
Steps to reproduce
https://github.com/johndegey/vite-vitest-vue2
Run test in branch 'stubbing-with-attribute'
Expected behaviour
Test should work when the attribute is a boolean 'false' value.
Expect to see the attribute in the output of the stubbed component.
Actual behaviour
Test fails, the attribute is not present in the output of the stubbed component.
Possible Solution
Alternative : using Number and validate it should only be 0 | 1
Best
John
The text was updated successfully, but these errors were encountered: