Skip to content

Commit 98195cb

Browse files
committed
chore: update test-vscode.sh to use pnpm
1 parent 76e35ca commit 98195cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

testing/test-vscode.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -x
33
set -e
44
# just to make sure: we are in the mongosh root dir
55
test -x packages && grep -q '"name": "mongosh"' package.json
6-
npm -v
6+
pnpm -v
77
# we pick a target directory that is not affected by the mongosh node_modules directory
88
mongosh_root_dir=$PWD
99
test_root_dir=/tmp/mongosh-vscode-test
@@ -12,7 +12,7 @@ rm -rf "$test_root_dir" && mkdir -p "$test_root_dir"
1212
cd "$test_root_dir"
1313
git clone --depth=10 https://github.com/mongodb-js/vscode.git
1414
cd vscode
15-
npm install --force
15+
pnpm install
1616
rm -rf node_modules/@mongosh node_modules/mongodb node_modules/@mongodb-js/devtools-connect node_modules/@mongodb-js/devtools-proxy-support
1717
(cd node_modules && \
1818
ln -s "$mongosh_root_dir/packages" @mongosh && \
@@ -21,6 +21,6 @@ rm -rf node_modules/@mongosh node_modules/mongodb node_modules/@mongodb-js/devto
2121
ln -s "$mongosh_root_dir/node_modules/@mongodb-js/devtools-connect" devtools-connect && \
2222
ln -s "$mongosh_root_dir/node_modules/@mongodb-js/devtools-proxy-support" devtools-proxy-support)
2323
# This test can require a lot of memory so we bump the maximum size.
24-
NODE_OPTIONS='--max-old-space-size=4096 --no-experimental-strip-types' npm test
24+
NODE_OPTIONS='--max-old-space-size=4096 --no-experimental-strip-types' pnpm test
2525
cd /tmp
2626
rm -rf "$test_root_dir"

0 commit comments

Comments
 (0)