-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Path options do not work with vitest
vi.mock
#99
Comments
vitest
vi.mock
vitest
vi.mock
Encountering this problem as well. In our case we don't have any specific paths declared in our |
This may be related... I have
These imports work just fine when running the app via Potentially the same code path doing the resolving for dynamic imports as trying to resolve mocks? I haven't seen much discussion of vitest resolution issues outside of this specific issue. |
It's a vitest bug and they just reverted the commit in v0.28.4 about an hour ago. |
TYVM, @cayter! It turns it these two were related. Updated to vitest 0.28.4 and the issue with dynamic imports is fixed as well! |
Indeed, looks fixed! Thanks for the heads up @cayter! |
Given a
tsconfig.json
like so:And a
vite.config.ts
:In a
vitest
spec file:The text was updated successfully, but these errors were encountered: