-
Notifications
You must be signed in to change notification settings - Fork 18
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
Does svelte-jester work with svelte 5? #299
Comments
Thanks for the question. I might have some time on the weekend to look into this. In the meantime, you can check here, if anything resolves the problem: #121 (comment) |
it certainly works with svelte 4. The tests, which were originally written for svelte 2/3, worked without any changes. But I did have to change the test code for 5 and that caused the error.
|
Hi @sebastianrothe, |
Yeah, and to my surprise, we already have svelte5 support and tests. https://github.com/svelteness/svelte-jester/tree/master/e2e/svelte-5 I upgraded to the current svelte version and it works as well (#300). Can you provide a sample repo with your problem? |
The repo that I have been using is https://github.com/norricorp/svelte4-navigator on the svelte5 branch.
I made the change based on The error is pointing to the import render. I will also raise this again with the svelte forum on discord. The background is that I made changes to a fork of the original repo and (naturally) wanted to do the minimum so I would rather not have to get involved with learning jest right now. |
My package.json includes
"jest": "^29.7.0",
"svelte": "^5.0.0",
"svelte-jester": "^5.0.0",
For svelte 5 migration I added
import { render } from 'svelte/server';
to ssr.test.js
Result is
FAIL test/ssr/ssr.test.js
● Test suite failed to run
The text was updated successfully, but these errors were encountered: