question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Svelte Component Testing Support

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lmiller1990commented, Aug 4, 2022

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.

1reaction
lmiller1990commented, Aug 3, 2022

@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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Component Testing in Svelte - This Dot Labs
Testing components using Jest and Testing Library can help you avoid errors when developing, and also can make you more confident when applying ......
Read more >
How to test Svelte components - Tim Deschryver
Writing Svelte component tests with the Svelte Testing Library is simple. Let's take a look at the setup to get you started!
Read more >
FAQ • Svelte
When it comes to testing the components, it is best to test the logic of the component and remember that the Svelte library...
Read more >
Svelte Component Testing - Cypress Documentation
Cypress Component Testing supports Svelte 3+ in a variety of different frameworks: Svelte with Vite; Svelte with Webpack. Svelte is currently in alpha...
Read more >
Testing a Svelte app with Vitest - LogRocket Blog
Currently, Svelte does not recommend a particular unit testing framework, and it does not advocate for a particular testing strategy.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found