Unexpected token error when testing Svelte Web Component in Cypress 10.7.0 #23788
Unanswered
alexlibby
asked this question in
Questions and Help
Replies: 1 comment
-
Hi, can you share how you've configured component testing? Maybe share cypress.config.js and webpack.config.js? Our docs only show Vite but this should definitely work fine as long as your webpack config knows how to compile a svelte file. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having an issue with running a test in Cypress for a Svelte web component.
The error I get back is this:
This is the test I'm using - the mount command is set in
\cypress\support\commands.js
:The component itself is this:
I'm reasonably sure this is working, as it is displaying OK in Storybook - can anyone help please to figure out what's causing it to throw the error? I'm not 100% sure if this is a bug or just a bad / unsupported config - happy to provide details if needed!
Beta Was this translation helpful? Give feedback.
All reactions