cypress icon indicating copy to clipboard operation
cypress copied to clipboard

Svelte 5 component testing

Open tobiasBora opened this issue 1 year ago • 5 comments

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

tobiasBora avatar Jun 10 '24 14:06 tobiasBora

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

jennifer-shehane avatar Jun 10 '24 14:06 jennifer-shehane

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.

tobiasBora avatar Jun 10 '24 15:06 tobiasBora

It's not supported in Cypress currently.

jennifer-shehane avatar Jun 10 '24 15:06 jennifer-shehane

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 avatar Oct 29 '24 23:10 AtofStryker

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

claridgicus avatar Nov 20 '24 04:11 claridgicus

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[bot] avatar Jan 16 '25 21:01 cypress-bot[bot]