01b46faa2d
* node * fix comment (no-ci) * Apply suggestions from code review Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com> * update test scenario * remove minor for node 18 * update scenarios to object notation * add shabang * only set default node once Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>
18 lines
448 B
Bash
18 lines
448 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Optional: Import test library
|
|
source dev-container-features-test-lib
|
|
|
|
# 'latest' is some version of node 18 for a while.
|
|
check "version_on_path" node -v | grep 18
|
|
|
|
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
|