Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Svelte 5 component testing #29641

Closed
tobiasBora opened this issue Jun 10, 2024 · 6 comments · Fixed by #30700, cypress-io/cypress-component-testing-apps#40 or cypress-io/cypress-documentation#6028
Assignees
Labels
CT Issue related to component testing Cypress 14 Issues scoped for Cypress 14 npm: @cypress/svelte @cypress/svelte package issues

Comments

@tobiasBora
Copy link

What would you like?

For now it is not possible to do component testing with svelte 5:

image

Why is this needed?

Because svelte 5 is the new version of svelte.

Other

No response

@jennifer-shehane jennifer-shehane added CT Issue related to component testing npm: @cypress/svelte @cypress/svelte package issues labels Jun 10, 2024
@jennifer-shehane
Copy link
Member

Thanks for opening. We've got this on our radar. Svelt 5 is currently a release candidate with no confirmed release date: https://svelte.dev/blog/svelte-5-release-candidate

@tobiasBora
Copy link
Author

Yes, but it seems to reach some sort of stability. But right now is it just "not supported at all", or "at our own risks"? Because I get an error like "your tests are loading", but I don't know if it's me doing something stupid or if it's due to svelte5 being truly not supported.

@jennifer-shehane
Copy link
Member

It's not supported in Cypress currently.

@AtofStryker
Copy link
Contributor

svelte 5 was released 10 days ago on https://www.npmjs.com/package/svelte/v/5.0.0. We will spike into this to see how much work it takes to support. If the work is minimal, we can likely include it in Cypress 14 or a release soon there after as a feature

@AtofStryker AtofStryker added the Cypress 14 Issues scoped for Cypress 14 label Nov 8, 2024
@jennifer-shehane jennifer-shehane moved this from Understanding to Designing / Scoping in Cypress App Priorities Nov 13, 2024
@claridgicus
Copy link

Looking forward to this after updating all my components and running my tests only to find out it doesn't work anymore 🤣

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jan 16, 2025

Released in 14.0.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v14.0.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Jan 16, 2025
@jennifer-shehane jennifer-shehane moved this from Building to Generally Available in Cypress App Priorities Jan 22, 2025
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
CT Issue related to component testing Cypress 14 Issues scoped for Cypress 14 npm: @cypress/svelte @cypress/svelte package issues
Projects
Status: Generally Available
4 participants