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
Hey, thanks for the quick reply 👍 Won't be the prettiest thing but It will do :) Hope Vue can improve support in the future.
Also, another question, this only started happening after we made the upgrades vue: 3.2.41 --> 3.2.45 and @vue/test-utils: 2.0.0 --> 2.2.3. Is it then related to some changes that happened in the Vue side?
This is the case for a while, but if you were still on VTU v2.0.0, maybe we had a any type for vm, whereas we now try to infer the maximum information we can (but I don't exactly remember in which version we started to improve this).
Describe the bug
Trying to access a variable declared in a component written with
script setup
results in a type errorTo Reproduce
script setup
and declare a variable inside itwrapper.vm.someVariable
Expected behavior
The variable accesses to work without typing errors
Related information:
@vue/test-utils
version: 2.2.3Vue
version: 3.2.45node
version: 16.17.0npm
(oryarn
) version: 9.1.1Additional context
The tests do pass, but typescript isn't happy
The text was updated successfully, but these errors were encountered: