Skip to content

No type completion in spec.ts files when using <script setup> for SFC #805

@jayEvans89

Description

@jayEvans89

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions