-
-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No type completion in spec.ts files when using <script setup> for SFC #805
Labels
Comments
This is a design limitation. If expose all script setup variables, we can't got unused variables report. But before I find a solution, at least I will add an option to switch this behavior. |
Please try add
|
cexbrayat
added a commit
to cexbrayat/vue-test-utils-next
that referenced
this issue
Dec 22, 2021
This new option allows a better typechecking of components that expose variables. See vuejs/language-tools#805 Refs vuejs#972 as this partially fixes it
cexbrayat
added a commit
to cexbrayat/vue-test-utils-next
that referenced
this issue
Dec 24, 2021
This new option allows a better typechecking of components that expose variables. See vuejs/language-tools#805 Refs vuejs#972 as this partially fixes it
cexbrayat
added a commit
to cexbrayat/vue-test-utils-next
that referenced
this issue
Dec 24, 2021
This new option allows a better typechecking of components that expose variables. See vuejs/language-tools#805 Refs vuejs#972 as this partially fixes it
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using the setup syntactic sugar I can't get any variables, methods, computed variables etc to show in the autocomplete/intellisense in my test files. Props are showing correctly and I can get everything working correctly if I use the defineComponent option without the setup attribute.
I am using Volar's Take Over mode and Vue test utils for testing
Reproduction repo can be found here https://github.com/jayEvans89/vue-app-template
The text was updated successfully, but these errors were encountered: