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'm noticing that my test suite runs fine from the terminal. But when I try to trigger tests in NeoVim, I get errors like:
Vitest caught 1 unhandled error during the test run.
This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected.
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Error: Cannot find package 'jsdom' imported from /Users/jim.wharton/.local/share/mise/installs/node/22.10.0/lib/node_modules/vitest/dist/chunks/index.lVXYBqEP.js
That would indicate that it's trying to import jsdom from my global nodejs install wouldn't it? Why would that be the norm? Shouldn't it use the local node_modules folder for test dependencies? Perhaps I'm just misreading this?
Regardless, I don't know where to start hunting to figure out why this test runs just fine via running vitest manually from the CLI.
The text was updated successfully, but these errors were encountered:
I'm noticing that my test suite runs fine from the terminal. But when I try to trigger tests in NeoVim, I get errors like:
That would indicate that it's trying to import jsdom from my global nodejs install wouldn't it? Why would that be the norm? Shouldn't it use the local
node_modules
folder for test dependencies? Perhaps I'm just misreading this?Regardless, I don't know where to start hunting to figure out why this test runs just fine via running
vitest
manually from the CLI.The text was updated successfully, but these errors were encountered: