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
LorisSigrist
changed the title
String exports/imports aren't resolved on wildcard imports
String exports aren't resolved on wildcard imports
Jun 6, 2024
Describe the bug
JS allows you to export/import as arbitrary strings. However, in vitest, wildcard imports do not import these string-exports.
If this is executed via node it works as expected. If that same code is executed via vitest
undefined
is logged instead.Reproduction
https://github.com/LorisSigrist/vitest-string-exports-wildcard-reproduction (basically the code example above)
System Info
System: OS: macOS 14.4.1 CPU: (14) arm64 Apple M3 Max Memory: 2.54 GB / 36.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 22.2.0 - /opt/homebrew/bin/node npm: 10.7.0 - /opt/homebrew/bin/npm pnpm: 9.1.4 - /opt/homebrew/bin/pnpm bun: 1.1.8 - /opt/homebrew/bin/bun Browsers: Safari: 17.4.1 npmPackages: vitest: ^1.6.0 => 1.6.0
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: