Add support for [email protected] --experimentalVmThreads
#1706
Replies: 1 comment
-
Hey, @cmolina. Thanks for proposing this, I was not aware of this new flag being added to Vitest. Since it implies threads, it likely means Vitest will split tests across different Node.js threads, running them in parallel. Every thread implies a new Node.js process but given it's Vitest's responsibility to manage those, I'd expect Vitest to still call its setup hooks, like It looks like the error you shared is related to some As with any issue, I would highly appreciate a reproduction repository for this! |
Beta Was this translation helpful? Give feedback.
-
Hi, I recently read about this new vitest flag that should allow to run tests faster by using Node's VM context.
However, when I tried to run my tests, they all failed with this error, just before trying to import
msw
'ssetupServer
:Beta Was this translation helpful? Give feedback.
All reactions