-
Notifications
You must be signed in to change notification settings - Fork 33
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
issue with typescript + svelte3 + nested components #181
Comments
ok this is not a dynamic import or router related issue, just nesting a svelte component into another causes the issue...
leads to:
let me rename the ticket as this has anything to do neither with the router nor with its dynamic import syntax. |
@absinthetized is this issue still relevant for you? Most likely it looks like some sort of Jest configuration issue, but I'm not sure there's anything actionable at this point given updates in the ecosystem since the time of writing |
Thanks for checking. Feel free to close: the related project is now in the attic! |
hi,
I've been using svelte-testing-library to successfully test a number of svelte 3 components written in typescript. Yesterday I've introduced the svelte-spa-router package to add client side routing to the app and testing is now failing for the component which embeds the router.
here is the link to my repo branch (a mono repo with both client and server code).
the client code is here.
the failing component is here and it is the entry App.svelte component:
the test is located near the component here:
when I run the tests this is the error I got:
the error is rather obscure for me (I'm quite new to jest and testing library) and also any other component has got no traspiling issues.
Any hint to solve this?
Thank you!
The text was updated successfully, but these errors were encountered: