Skip to content

Commit 0e6a788

Browse files
authored
chore(ci): partially fix vscode test (#2538)
Right now, the VSCode test is failing in CI because the versions of `@mongodb-js/devtools-connect` mismatch. We can align them the same way we aligned the driver versions. This does not turn the task green yet, but it is a necessary step (the next one would be adjusting the VSCode source code for the removal of the argument to `serviceProvider.close()` from c8e2697).
1 parent 0c11ac4 commit 0e6a788

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

testing/test-vscode.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,13 @@ cd "$test_root_dir"
1313
git clone --depth=10 https://github.com/mongodb-js/vscode.git
1414
cd vscode
1515
npm install --force
16-
rm -rf node_modules/@mongosh node_modules/mongodb
17-
(cd node_modules && ln -s "$mongosh_root_dir/packages" @mongosh && ln -s "$mongosh_root_dir/node_modules/mongodb" mongodb)
16+
rm -rf node_modules/@mongosh node_modules/mongodb node_modules/@mongodb-js/devtools-connect node_modules/@mongodb-js/devtools-proxy-support
17+
(cd node_modules && \
18+
ln -s "$mongosh_root_dir/packages" @mongosh && \
19+
ln -s "$mongosh_root_dir/node_modules/mongodb" mongodb && \
20+
cd @mongodb-js && \
21+
ln -s "$mongosh_root_dir/node_modules/@mongodb-js/devtools-connect" devtools-connect && \
22+
ln -s "$mongosh_root_dir/node_modules/@mongodb-js/devtools-proxy-support" devtools-proxy-support)
1823
# This test can require a lot of memory so we bump the maximum size.
1924
NODE_OPTIONS=--max-old-space-size=4096 npm test
2025
cd /tmp

0 commit comments

Comments
 (0)