-
Hi all How can I mount a .tsx component using @vue/test-utils? Used: It was found: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
It should work out of the box. Try to generate a project with create-vue and pick the TypeScript/JSX support to see how it is configured. If you think you found an issue, please add a reproduction so we can take a look (you can build one in a few minutes online with Stackblitz https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/vue?initialPath=__vitest__ ) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
It should work out of the box. Try to generate a project with create-vue and pick the TypeScript/JSX support to see how it is configured. If you think you found an issue, please add a reproduction so we can take a look (you can build one in a few minutes online with Stackblitz https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/vue?initialPath=__vitest__ )