Open zachfey opened 7 months ago
attempted pointing MocaTestExplorer to it by adding "mochaExplorer.nodePath": "$HOME/.nvm/versions/node/v20.11.1/bin/node", in settings.json
That should have fixed it. You could try turning on diagnostic logging, it should contain a message "[DEBUG] Using nodePath: ..." showing which path it uses.
I've updated from Node v16 to Node v20 and I cannot get Mocha Test Explorer to use the proper version of node. When opening the explorer, I get the following error:
I believe it is because the test explorer is running with Node v16 (which was shipped with my version of VS Code), whereas my app is now compiled with Node v20.
I've tried ensuring NVM's node path is exported in my path with
export NODE_PATH='which node'
and attempted pointing MocaTestExplorer to it by adding"mochaExplorer.nodePath": "$HOME/.nvm/versions/node/v20.11.1/bin/node",
insettings.json
, but I keep getting the same error message.