cypress
cypress copied to clipboard
Svelte Component Testing Support
What would you like?
Add support for Svelte in Component Testing
Things to consider
- Common setups around svelte. The
Getting Started
guide usesVite
- Documentation Updates
- Tests
Why is this needed?
No response
Other
No response
Hey team! Please add your planning poker estimate with ZenHub @astone123 @lmiller1990 @marktnoonan @mike-plummer @rockindahizzy @warrensplayer @ZachJW34
We have an open source contribution for the mount side of things. Depending on when we want to get this out, we can create another issue for SvelteKit and focus the svelte + vite/webpack support
Assume this does not include SvelteKit support
Please, please, please - can we have official support for Svelte? I've been trying to get Svelte Vite Cypress combination to work for days now and at the end of my tether with not much luck. Been trying to follow this article, but the thing just doesn't want to work https://www.thisdot.co/blog/svelte-component-testing-with-cypress-vite
@slavco86 we sure can, it's getting worked on https://github.com/cypress-io/cypress/pull/22862.
Are you using SvelteKit? I think Svelte + webpack combo will likely land before the full SvelteKit/Vite integration does.
No, just vanilla Svelte +Vite. I think I finally got it to work 😂
Cool, maybe you can share your config for everyone else to see :100:
The problem is that my config is tightly locked into Node 14 and Cypress 8.5 Updating any of these - inevitably breaks the setup. Which specific config you want me to share?
Right, I didn't realise you were on 8.5.
Definitely recommend upgrading first! When we release our Svelte support, it'll be with Cypress 10 (latest version) in mind.
We will consider this implementation to be experimental
Released in 10.7.0
.
This comment thread has been locked. If you are still experiencing this issue after upgrading to Cypress v10.7.0, please open a new issue.