Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Svelte Component Testing Support #23037

Closed
rockindahizzy opened this issue Aug 1, 2022 · 11 comments
Closed

Svelte Component Testing Support #23037

rockindahizzy opened this issue Aug 1, 2022 · 11 comments
Assignees
Labels
CT Issue related to component testing Epic Requires breaking up into smaller issues

Comments

@rockindahizzy
Copy link
Contributor

What would you like?

Add support for Svelte in Component Testing

Things to consider

  1. Common setups around svelte. The Getting Started guide uses Vite
  2. Documentation Updates
  3. Tests

Why is this needed?

No response

Other

No response

@rockindahizzy rockindahizzy added the CT Issue related to component testing label Aug 1, 2022
@baus
Copy link
Collaborator

baus commented Aug 2, 2022

@ZachJW34
Copy link
Contributor

ZachJW34 commented Aug 2, 2022

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

@baus
Copy link
Collaborator

baus commented Aug 2, 2022

Assume this does not include SvelteKit support

@slavco86
Copy link

slavco86 commented Aug 3, 2022

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

@lmiller1990
Copy link
Contributor

@slavco86 we sure can, it's getting worked on #22862.

Are you using SvelteKit? I think Svelte + webpack combo will likely land before the full SvelteKit/Vite integration does.

@slavco86
Copy link

slavco86 commented Aug 3, 2022

No, just vanilla Svelte +Vite.
I think I finally got it to work 😂

@lmiller1990
Copy link
Contributor

Cool, maybe you can share your config for everyone else to see 💯

@slavco86
Copy link

slavco86 commented Aug 4, 2022

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?

@lmiller1990
Copy link
Contributor

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.

@lmiller1990 lmiller1990 added the Epic Requires breaking up into smaller issues label Aug 9, 2022
@baus
Copy link
Collaborator

baus commented Aug 16, 2022

We will consider this implementation to be experimental

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Aug 30, 2022

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.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Aug 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CT Issue related to component testing Epic Requires breaking up into smaller issues
Projects
Status: Generally Available
Development

No branches or pull requests

7 participants