From 83c6103db23ce383a23097832bdf15d71f775665 Mon Sep 17 00:00:00 2001 From: Akihiro Nagai <77012577+akihironagai@users.noreply.github.com> Date: Tue, 28 Feb 2023 02:12:21 +0900 Subject: Add pnpm in Node (#450) * Add pnpm in Node * pnpm from npm * Restore README.md * Update install.sh * Update tests --- test/node/install_additional_node.sh | 1 + test/node/install_node_16_on_bionic.sh | 1 + test/node/install_node_on_universal_image.sh | 1 + test/node/non_root_user.sh | 1 + test/node/test.sh | 1 + 5 files changed, 5 insertions(+) (limited to 'test') 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 -- cgit v1.2.3