connor4312 / nodejs-testing

VS Code integration for node:test native tests
MIT License
43 stars 6 forks source link

support nvmrc in node version #26

Open rluvaton opened 4 months ago

rluvaton commented 4 months ago

Thanks for the extension!

It would be great if you could use the version in the nvmrc file or the version of the current terminal in that directory (which will auto load the current version in the nvmrc file)

connor4312 commented 4 months ago

Hm,. The way that comes to mind is spawning a process as a login shell in the test directory and reading variables from there. It looks like fish, zsh, and bash all would work with ${process.env.SHELL} -l -c env, but it's not a guaranteed to be portable.