-
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
Svelte-kit support #44
Comments
Hm, we have type: module in package.json and it works without problems. What is the error you get? The adapters dont work in the latest next-version. Thats true. You could downgrade them to the version before their switch to ESM. |
@sebastianrothe why would you downgrade the adapter, when sevltekit is moving entirely in the es module direction. |
I wanted to show, how to get it to work with sveltekit. SInce SvelteKit is transitioning to ESM, this repo should do the same, I agree. There is another feature from Jest v27 (not released yet, but which supports ESM) #25 which might be implemented together. |
This is the exact error. |
Might be a duplicate of #6 |
I'll give it a try, because we need it for our current project as well. |
So... how does one make it work with Sveltekit? I mean what does one import in your test? With standard svelte it would be |
@geoidesic see the tests in the https://github.com/navneetsharmaui/sveltkit-starter |
@navneetsharmaui thx, I checked that out –– couldn't get it to build and also didn't see any tests in there? [UPDATE: found the tests but they don't run for me, I get an error |
@geoidesic I will be updating the project with the latest svelte-jester, as the test working previously since the sveltekit moved to esmodule, and by that time svelte-jester didn't had the support for the esmodule. Wait an hour I will update the project to support the latest svelte-jester. |
@geoidesic You can check the project now, I've checked in some changes. |
Currently svelte-kit requires
"type": "module"
to be present inpackage.json
. This does not work with current version of svelte-jester because it uses require under the hood and requires are prohibited with ES modulesThe text was updated successfully, but these errors were encountered: