Skip to content

Commit 54a4eef

Browse files
committed
Update unit tests
1 parent 51599db commit 54a4eef

File tree

1,619 files changed

+552644
-15
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,619 files changed

+552644
-15
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,16 @@ jobs:
1919
with:
2020
submodules: recursive
2121

22-
# Verify CSP line exists in target TypeScript file
23-
- name: Check CSP configuration in webClientServer.ts
24-
run: |
25-
TARGET_FILE="patched-vscode/src/vs/server/node/webClientServer.ts"
26-
REQUIRED_TEXT="'connect-src \'self\' ws: wss: https://main.vscode-cdn.net http://localhost:* https://localhost:* https://login.microsoftonline.com/ https://update.code.visualstudio.com https://*.vscode-unpkg.net/ https://default.exp-tas.com/vscode/ab https://vscode-sync.trafficmanager.net https://vscode-sync-insiders.trafficmanager.net https://*.gallerycdn.vsassets.io https://marketplace.visualstudio.com https://openvsxorg.blob.core.windows.net https://az764295.vo.msecnd.net https://code.visualstudio.com https://*.gallery.vsassets.io https://*.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com https://*.servicebus.windows.net/ https://vscode.blob.core.windows.net https://vscode.search.windows.net https://vsmarketplacebadges.dev https://vscode.download.prss.microsoft.com https://download.visualstudio.microsoft.com https://*.vscode-unpkg.net https://open-vsx.org;'"
22+
# Install dependencies
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: '20'
2727

28-
if [ ! -f "$TARGET_FILE" ]; then
29-
echo "❌ FAIL: Target file $TARGET_FILE does not exist."
30-
exit 1
31-
fi
28+
# Install quilt for patch management
29+
- name: Install quilt
30+
run: sudo apt-get update && sudo apt-get install -y quilt
3231

33-
if grep -F "$REQUIRED_TEXT" "$TARGET_FILE" > /dev/null; then
34-
echo "✅ PASS: Required CSP text exists."
35-
else
36-
echo "❌ FAIL: Required CSP text NOT found in $TARGET_FILE"
37-
exit 1
38-
fi
32+
# Run unit tests
33+
- name: Run patch validation tests
34+
run: ./scripts/run-unit-tests.sh

node_modules/.package-lock.json

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@types/node/LICENSE

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@types/node/README.md

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)