aboutsummaryrefslogtreecommitdiff
path: root/test/node/install_additional_node.sh
blob: f47f928c08295f4c1673b0c290074a2c71b6a53c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

set -e

# Optional: Import test library
source dev-container-features-test-lib

# 'lts' is some version of node 18 for a while.
check "version_on_path"  node -v | grep 18
check "pnpm" pnpm -v

check "v18_installed" ls -1 /usr/local/share/nvm/versions/node | grep 18
check "v14_installed" ls -1 /usr/local/share/nvm/versions/node | grep 14.19.3
check "v17_installed" ls -1 /usr/local/share/nvm/versions/node | grep 17.9.1


# Report result
reportResults