aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/test/runTest.ts
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-08-26 09:07:59 +0100
committerGitHub <[email protected]>2019-08-26 09:07:59 +0100
commit04c2961d0c5493962e948dc8101445cc76f1d460 (patch)
treec848162864e46a65733f1ed06f15cda80d5ed721 /editors/code/src/test/runTest.ts
parent1fbe5ffba8fdcdb47a53a06f2fd6a5fd8fc99bf3 (diff)
parentb58f84626f2976e6dd7f9dad6627e21b352dee84 (diff)
Merge #1736
1736: Switch to `@types/vscode` and `vscode-test` r=matklad a=bkchr The old `vscode` package is outdated and it is recommened to switch to these two new packages. This also solves a problem of a missing `.d.ts` for `vscode` in Nixos. Co-authored-by: Bastian Köcher <[email protected]>
Diffstat (limited to 'editors/code/src/test/runTest.ts')
-rw-r--r--editors/code/src/test/runTest.ts22
1 files changed, 22 insertions, 0 deletions
diff --git a/editors/code/src/test/runTest.ts b/editors/code/src/test/runTest.ts
new file mode 100644
index 000000000..d880d47df
--- /dev/null
+++ b/editors/code/src/test/runTest.ts
@@ -0,0 +1,22 @@
1import * as path from 'path';
2
3import { runTests } from 'vscode-test';
4
5async function main() {
6 try {
7 // The folder containing the Extension Manifest package.json
8 // Passed to `--extensionDevelopmentPath`
9 const extensionDevelopmentPath = path.resolve(__dirname, '../../');
10
11 // The path to the extension test runner script
12 // Passed to --extensionTestsPath
13 const extensionTestsPath = path.resolve(__dirname, './utils/index');
14
15 // Download VS Code, unzip it and run the integration test
16 await runTests({ extensionDevelopmentPath, extensionTestsPath });
17 } catch (err) {
18 process.exit(1);
19 }
20}
21
22main();