-
-
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
Most fields in Module
are missing. (environment: 'node')
#3440
Comments
Start a new pull request in StackBlitz Codeflow. |
Vitest doesn't currently support an "actual" Node environment, only those features usually needed for cross-environment code because it uses vite-node under the hood which has its own module system. For reference: #2854 |
@sheremet-va Thanks! is there an alternative to get |
You can get the current module path with |
Thanks |
Strict ESM enhancements are discussed in #2841, closing this issue for now. |
Describe the bug
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-cqnkvq?file=test%2Fbasic.test.ts
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: