From 95a169b9ef92c9dae454df5e87d4c26d56a863c9 Mon Sep 17 00:00:00 2001 From: eitsupi <50911393+eitsupi@users.noreply.github.com> Date: Tue, 29 Aug 2023 06:26:30 +0900 Subject: [node] Install the latest version of nvm by default (#673) feat(node): install the latest nvm by default --- test/node/install_nvm_0.39.sh | 14 ++++++++++++++ test/node/scenarios.json | 10 +++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100755 test/node/install_nvm_0.39.sh (limited to 'test') diff --git a/test/node/install_nvm_0.39.sh b/test/node/install_nvm_0.39.sh new file mode 100755 index 0000000..6b96381 --- /dev/null +++ b/test/node/install_nvm_0.39.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +set -e + +# Optional: Import test library +source dev-container-features-test-lib + +# Definition specific tests +check "version" bash -c "node --version" +check "pnpm" pnpm -v +check "nvm version" bash -c ". /usr/local/share/nvm/nvm.sh && nvm --version | grep 0.39" + +# Report result +reportResults diff --git a/test/node/scenarios.json b/test/node/scenarios.json index 5524f5c..a45620f 100644 --- a/test/node/scenarios.json +++ b/test/node/scenarios.json @@ -44,5 +44,13 @@ "version": "16" } } + }, + "install_nvm_0.39": { + "image": "mcr.microsoft.com/devcontainers/base", + "features": { + "node": { + "nvmVersion": "0.39" + } + } } -} \ No newline at end of file +} -- cgit v1.2.3