Skip to content

Commit c725c5b

Browse files
authored
test: Removes @vscode/test-electron (#114)
We were not using this test infrastructure, and after #56 it should be better to accomplish these tests using something like playwright. @vscode/test-electron is really not ideal. It's heavy, and does not provide any tooling to test webviews, which we make use of. --------- Signed-off-by: Tyler Smalley <[email protected]>
1 parent f40b6be commit c725c5b

File tree

7 files changed

+26
-345
lines changed

7 files changed

+26
-345
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@ jobs:
2626
key: yarn-cache
2727
- name: Install dependencies
2828
run: tool/yarn install --frozen-lockfile --prefer-offline
29-
# - name: Integration Tests (Linux)
30-
# run: xvfb-run -a tool/yarn test
31-
# if: runner.os == 'Linux'
32-
# - name: Integration Tests (macOS/Windows)
33-
# run: tool/yarn test
34-
# if: runner.os != 'Linux'
3529
- name: Lint
3630
run: tool/yarn lint
3731
- name: Typescript

.vscode/launch.json

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,6 @@
1515
},
1616
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
1717
"preLaunchTask": "${defaultBuildTask}"
18-
},
19-
{
20-
"name": "Extension Tests",
21-
"type": "extensionHost",
22-
"request": "launch",
23-
"args": [
24-
"--extensionDevelopmentPath=${workspaceFolder}",
25-
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
26-
],
27-
"env": {
28-
"NODE_ENV": "development"
29-
},
30-
"outFiles": ["${workspaceFolder}/out/**/*.js", "${workspaceFolder}/dist/**/*.js"],
31-
"preLaunchTask": "tasks: watch-tests"
3218
}
3319
]
3420
}

package.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -314,15 +314,11 @@
314314
"package": "vsce package --allow-star-activation",
315315
"precommit": "lint-staged",
316316
"prepare": "husky install",
317-
"pretest": "yarn run compile-tests && yarn run compile && yarn run lint",
318-
"test": "tool/node ./out/test/run-test.js",
319317
"vscode:prepublish": "(yarn run bundle-js & pid1=$!; yarn run bundle-go & pid2=$!; wait $pid1 || exit 1; wait $pid2 || exit 1)",
320-
"watch-tests": "tsc -p . -w --outDir out",
321318
"watch": "webpack serve"
322319
},
323320
"devDependencies": {
324321
"@types/glob": "^8.1.0",
325-
"@types/mocha": "^10.0.1",
326322
"@types/node": "16.11.68",
327323
"@types/react": "^18.2.15",
328324
"@types/react-dom": "^18.2.7",
@@ -331,7 +327,6 @@
331327
"@typescript-eslint/eslint-plugin": "^6.1.0",
332328
"@typescript-eslint/parser": "^6.1.0",
333329
"@vscode/codicons": "^0.0.33",
334-
"@vscode/test-electron": "^2.3.3",
335330
"@vscode/vsce": "^2.19.0",
336331
"@vscode/webview-ui-toolkit": "^1.2.2",
337332
"backport": "^8.9.8",
@@ -344,7 +339,6 @@
344339
"glob": "^10.3.3",
345340
"husky": "^8.0.3",
346341
"lint-staged": "^13.2.3",
347-
"mocha": "^10.2.0",
348342
"node-fetch": "^3.3.1",
349343
"postcss": "^8.4.26",
350344
"postcss-loader": "^7.3.3",

src/test/run-test.ts

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/test/suite/extension.test.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/test/suite/index.ts

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)