aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAkihiro Nagai <77012577+akihironagai@users.noreply.github.com>2023-02-27 20:12:21 +0300
committerGitHub <noreply@github.com>2023-02-27 20:12:21 +0300
commit83c6103db23ce383a23097832bdf15d71f775665 (patch)
tree2020b0ef06462373beaaee3e2cd37b2e65250aad /test
parentd84e46be47867e596fdd2f2efaefb63f67597a07 (diff)
Add pnpm in Node (#450)feature_node_1.2.0
* Add pnpm in Node * pnpm from npm * Restore README.md * Update install.sh * Update tests
Diffstat (limited to 'test')
-rw-r--r--test/node/install_additional_node.sh1
-rwxr-xr-xtest/node/install_node_16_on_bionic.sh1
-rw-r--r--test/node/install_node_on_universal_image.sh1
-rwxr-xr-xtest/node/non_root_user.sh1
-rwxr-xr-xtest/node/test.sh1
5 files changed, 5 insertions, 0 deletions
diff --git a/test/node/install_additional_node.sh b/test/node/install_additional_node.sh
index 1a1abca..f47f928 100644
--- a/test/node/install_additional_node.sh
+++ b/test/node/install_additional_node.sh
@@ -7,6 +7,7 @@ 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
diff --git a/test/node/install_node_16_on_bionic.sh b/test/node/install_node_16_on_bionic.sh
index 1b301d3..500e007 100755
--- a/test/node/install_node_16_on_bionic.sh
+++ b/test/node/install_node_16_on_bionic.sh
@@ -7,6 +7,7 @@ source dev-container-features-test-lib
# Definition specific tests
check "version" bash -c "node --version | grep 16"
+check "pnpm" pnpm -v
check "nvm" bash -c ". /usr/local/share/nvm/nvm.sh && nvm install 10"
# Report result
diff --git a/test/node/install_node_on_universal_image.sh b/test/node/install_node_on_universal_image.sh
index faca1eb..33a9d41 100644
--- a/test/node/install_node_on_universal_image.sh
+++ b/test/node/install_node_on_universal_image.sh
@@ -6,6 +6,7 @@ set -e
source dev-container-features-test-lib
check "version_on_path" bash -c "node -v | grep 'v19.1.0'"
+check "pnpm" pnpm -v
# Report result
reportResults
diff --git a/test/node/non_root_user.sh b/test/node/non_root_user.sh
index 6b6804d..499dbe6 100755
--- a/test/node/non_root_user.sh
+++ b/test/node/non_root_user.sh
@@ -7,6 +7,7 @@ source dev-container-features-test-lib
# Definition specific tests
check "version" node --version
+check "pnpm" pnpm -v
check "nvm" bash -c ". /usr/local/share/nvm/nvm.sh && nvm install 10"
# Report result
diff --git a/test/node/test.sh b/test/node/test.sh
index 6b6804d..499dbe6 100755
--- a/test/node/test.sh
+++ b/test/node/test.sh
@@ -7,6 +7,7 @@ source dev-container-features-test-lib
# Definition specific tests
check "version" node --version
+check "pnpm" pnpm -v
check "nvm" bash -c ". /usr/local/share/nvm/nvm.sh && nvm install 10"
# Report result