Skip to content

Commit

Permalink
Experiment with vscode/test-cli package
Browse files Browse the repository at this point in the history
  • Loading branch information
fendor committed Oct 22, 2024
1 parent 4468a34 commit 46ca5a9
Show file tree
Hide file tree
Showing 3 changed files with 219 additions and 8 deletions.
12 changes: 12 additions & 0 deletions .vscode-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const { defineConfig } = require('@vscode/test-cli');

module.exports = defineConfig([
{
label: 'integration-tests',
files: 'out/test/**/*.test.js',
version: 'stable',
workspaceFolder: './test-workspace',
installExtensions: ['justusadam.language-haskell'],
}
// you can specify additional test configurations, too
]);
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1294,7 +1294,7 @@
"push-tag": "git tag -a $npm_package_version -m \"Version $npm_package_version\" && git push origin $npm_package_version",
"pretest": "tsc --alwaysStrict -p ./",
"format": "prettier . --write",
"test": "node ./out/test/runTest.js"
"test": "vscode-test"
},
"husky": {
"hooks": {
Expand All @@ -1309,6 +1309,7 @@
"@types/which": "^3.0.4",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"eslint": "^8.57.0",
"eslint-webpack-plugin": "^4.2.0",
Expand Down
Loading

0 comments on commit 46ca5a9

Please sign in to comment.