Skip to content

Commit 1508da0

Browse files
committed
Fix test failures on Windows
1 parent 4e201d6 commit 1508da0

File tree

4 files changed

+213
-89
lines changed

4 files changed

+213
-89
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
vscode-${{ runner.os }}-
4848
4949
- name: Run tests
50-
uses: GabrielBB/xvfb-action@v1.0
50+
uses: coactions/setup-xvfb@v1
5151
with:
5252
run: yarn test
5353
env:

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"@types/xml2js": "^0.4.9",
6666
"@typescript-eslint/eslint-plugin": "^4.29.0",
6767
"@typescript-eslint/parser": "^4.29.0",
68+
"@vscode/test-electron": "^2.4.0",
6869
"chardet": "^1.3.0",
6970
"dayjs": "^1.10.6",
7071
"decache": "^4.6.0",
@@ -86,7 +87,6 @@
8687
"tmp": "0.2.1",
8788
"ts-loader": "^9.2.4",
8889
"typescript": "^4.3.5",
89-
"vscode-test": "^1.6.1",
9090
"webpack": "^5.48.0",
9191
"webpack-cli": "^4.7.2",
9292
"xml2js": "^0.4.19"
@@ -1296,4 +1296,4 @@
12961296
}
12971297
]
12981298
}
1299-
}
1299+
}

src/test/runTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as path from "path";
2-
import { runTests } from "vscode-test";
2+
import { runTests } from "@vscode/test-electron";
33

44
async function main() {
55
const extensionDevelopmentPath = path.resolve(__dirname, "../../");

0 commit comments

Comments
 (0)