Skip to content
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

Is it possible to add support for lang="tsx" in sfc? #510

Closed
Lisheri opened this issue Nov 15, 2022 · 3 comments · Fixed by #547
Closed

Is it possible to add support for lang="tsx" in sfc? #510

Lisheri opened this issue Nov 15, 2022 · 3 comments · Fixed by #547

Comments

@Lisheri
Copy link

Lisheri commented Nov 15, 2022

Is it possible to add support for lang="tsx" in sfc?
Currently, when testing sfc with lang="tsx", an error will be reported
image

@Lisheri
Copy link
Author

Lisheri commented Nov 15, 2022

Although tsx components can be tested using ts-jest, a large number of modules in the original project are written using sfc with lang="tsx".

@Lisheri
Copy link
Author

Lisheri commented Nov 15, 2022

Can I use vue-jest with babel to handle lang="tsx"?

@sevilyilmaz
Copy link
Contributor

@Lisheri have you able to fix the issue? I'm getting the exact same error and trying to figure out the possible Jest/vue-jest config

lmiller1990 pushed a commit that referenced this issue Aug 6, 2023
Applies the same fix for Vue 2 with this PR: #395

Resolves #510
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants