Working on enabling component tests with Vue 3 + Vite #998
Unanswered
samuel-ziegler
asked this question in
Q&A
Replies: 3 comments 19 replies
-
Have you read my notes on this? #698 |
Beta Was this translation helpful? Give feedback.
17 replies
-
Ended up just writing a Cucumber plugin for Vitest: Not yet feature complete, but it's getting there. Will probably end up using Vitest for my component tests with my plugin and Cypress with this plugin for the e2e tests. |
Beta Was this translation helpful? Give feedback.
0 replies
-
FYI, Vite is now supported since v7.1.0. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @badeball ,
Thanks for the excellent plugin. Have e2e tests working fine with Vue 3 + Vite and have been taking a crack at getting component tests working. From digging into things so far, it seems that the issue is that Cypress asks VIte to load the component tests via the filesystem and Vite doesn't process those types of requests through it's plugin APIs.
Assuming I'm correct in my assessment, I see a few possible approaches to making this happen. Was wondering if you had any insight on which approach might be best:
Any thoughts?
Thanks again!
Beta Was this translation helpful? Give feedback.
All reactions