From 5a28180ed6072b892bc2dc342c5c08a33c93121f Mon Sep 17 00:00:00 2001 From: "Stiliyan Tonev (Bark)" Date: Tue, 30 Jul 2024 11:51:32 +0300 Subject: [PATCH] tests: Add test to check if the message contains the relevant information. --- ...vm-exec' should display required node version | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/slow/Running 'nvm-exec' should display required node version diff --git a/test/slow/Running 'nvm-exec' should display required node version b/test/slow/Running 'nvm-exec' should display required node version new file mode 100644 index 0000000000..53b149b7f2 --- /dev/null +++ b/test/slow/Running 'nvm-exec' should display required node version @@ -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