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
I couldn't reproduce on StackBlitz (the test passes apparently)
The trace doesn't point to the right line of code
Locally, I am on a pnpm monorepository
When I run vitest with --no-threads, I don't even have an error, the file is completely ignored. If I use --threads, I get the error I pasted above. I have no idea why, at first I thought there was an issue with my filter.
I think that last point should be an issue on its own.
Reproduction
I couldn't reproduce on StackBlitz but if required I'll host my code on GitHub and link it.
Describe the bug
I was trying to test a file that uses
tmp
, and ran into the following issue:The issue is that
tmp
has the following snippet, which fails becausemodule.exports
is not what Vitest expects:Multiple notes here:
pnpm
monorepositoryvitest
with--no-threads
, I don't even have an error, the file is completely ignored. If I use--threads
, I get the error I pasted above. I have no idea why, at first I thought there was an issue with my filter.I think that last point should be an issue on its own.
Reproduction
I couldn't reproduce on StackBlitz but if required I'll host my code on GitHub and link it.
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: