We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a piece of code in a vitest test like:
import { something } from '~/fileA' // ...and later const module = await import('~/foo/bar/fileB')
And in my tsconfig.json, something like:
tsconfig.json
{ "compilerOptions": { "baseUrl": "./src", "paths": { "~/*": ["./*"] } } }
(i.e. I create an alias ~ for the src directory)
~
src
Using vitest 0.25.5, both the static import (fileA) and the dynamic import (fileB) work.
Using vitest 0.25.6, the static import works but the dynamic import fails. [vite-node] Failed to load ~/foo/bar/fileB
[vite-node] Failed to load ~/foo/bar/fileB
Here is the commit in vitest 0.25.6 that I think gives rise to this issue? vitest-dev/vitest#2461 vitest-dev/vitest@e9cb4136
The text was updated successfully, but these errors were encountered:
This seems like a Vitest bug.
Sorry, something went wrong.
No branches or pull requests
I have a piece of code in a vitest test like:
And in my
tsconfig.json
, something like:(i.e. I create an alias
~
for thesrc
directory)Using vitest 0.25.5, both the static import (fileA) and the dynamic import (fileB) work.
Using vitest 0.25.6, the static import works but the dynamic import fails.
[vite-node] Failed to load ~/foo/bar/fileB
Here is the commit in vitest 0.25.6 that I think gives rise to this issue?
vitest-dev/vitest#2461
vitest-dev/vitest@e9cb4136
The text was updated successfully, but these errors were encountered: