Skip to content

Commit 46ca5a9

Browse files
committed
Experiment with vscode/test-cli package
1 parent 4468a34 commit 46ca5a9

File tree

3 files changed

+219
-8
lines changed

3 files changed

+219
-8
lines changed

.vscode-test.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const { defineConfig } = require('@vscode/test-cli');
2+
3+
module.exports = defineConfig([
4+
{
5+
label: 'integration-tests',
6+
files: 'out/test/**/*.test.js',
7+
version: 'stable',
8+
workspaceFolder: './test-workspace',
9+
installExtensions: ['justusadam.language-haskell'],
10+
}
11+
// you can specify additional test configurations, too
12+
]);

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1294,7 +1294,7 @@
12941294
"push-tag": "git tag -a $npm_package_version -m \"Version $npm_package_version\" && git push origin $npm_package_version",
12951295
"pretest": "tsc --alwaysStrict -p ./",
12961296
"format": "prettier . --write",
1297-
"test": "node ./out/test/runTest.js"
1297+
"test": "vscode-test"
12981298
},
12991299
"husky": {
13001300
"hooks": {
@@ -1309,6 +1309,7 @@
13091309
"@types/which": "^3.0.4",
13101310
"@typescript-eslint/eslint-plugin": "^7.18.0",
13111311
"@typescript-eslint/parser": "^7.18.0",
1312+
"@vscode/test-cli": "^0.0.10",
13121313
"@vscode/test-electron": "^2.4.1",
13131314
"eslint": "^8.57.0",
13141315
"eslint-webpack-plugin": "^4.2.0",

0 commit comments

Comments
 (0)