You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I import something from $app/forms, like enhance in one of my components, vitest tests fail.
Even when I try to mock $app/forms, it fails, without even reaching my mock.
Thank you for taking the time to review my issue.
I've taken a look at #1485 and it is a duplicate of that.
Could you tell me if this is something you're taking a look at?
Describe the bug
When I import something from
$app/forms
, likeenhance
in one of my components,vitest
tests fail.Even when I try to mock
$app/forms
, it fails, without even reaching my mock.Thank you!
Reproduction
https://github.com/Gil3co/app-forms-test-fail
To reproduce:
npm i
.npm run test
and see the test fails.Logs
This is the error:
Error: Failed to resolve import "$app/forms" from "src/routes/Component.svelte". Does the file exist?
System Info
Severity
annoyance
Additional Information
This is very frustrating, since I can't write tests for my project.
The text was updated successfully, but these errors were encountered: