-
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
loading svelte packages from node_modules #23
Comments
Hey @darkship you can use |
I tried it. It breaks the handling of components with svelte-jester. And I don't find the related github page of this package |
Hi @darkship ,
the folders "svelte-select" and "svelte-calendar" in the node_modules, will be transformed based on the transform config. |
This should be fixed with Jest 27+ and Sveltekit requiring ESM. |
Not every Svelte packages are providing CommonJSmodules needed by Jest.
Examples:
svelte-select: provides es, mjs modules and the svelte component
svelte-calendar: provides only the svelte component.
Is there something I can do to tell jest that it has to look for the svelte component when it comes from node_modules?
The text was updated successfully, but these errors were encountered: