tests: Add test to check if the message contains the relevant information.

This commit is contained in:
Stiliyan Tonev (Bark) 2024-07-30 11:51:32 +03:00
parent e2ff1e7f08
commit 5a28180ed6

View File

@ -0,0 +1,16 @@
#!/bin/sh
set -ex
die () { echo "$@" ; exit 1; }
\. ../../../nvm.sh
NVM_TEST_VERSION=v9
# Remove the stuff we're clobbering.
[ -e ../../$NVM_TEST_VERSION ] && rm -R ../../$NVM_TEST_VERSION
# Write it to nvmrc
echo "$NVM_TEST_VERSION" > .nvmrc
# Skip install, we want to test the error message
nvm-exec