-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Regression (0.33.0 -> 0.34.0) tests completely break when using jsdom or happy-dom with SvelteKit #3953
Comments
Start a new pull request in StackBlitz Codeflow. |
File is outside root. Try disabling |
Indeed the problem is with this. While we are working on fixing this, you can disable strict in test mode or add a tests folder to |
Thank you. As you suggested, adding the following to
|
Svelte does some magic to |
Describe the bug
So basically after updating to 0.34.0 from 0.33.0 I get the following error message (redacted):
Contrary to what the error message suggests, the file does exist.
I believe this is due to #3491 as it does work when using node instead of
jsdom
orhappy-dom
, suggesting the use of theweb
transform mode instead ofssr
is what's causing this.Note: 0.34.1 doesn't fix the issue.
Reproduction
Open the following StackBlitz and run
npm run test
https://stackblitz.com/edit/sveltejs-kit-template-default-fwbgpv
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: