From b58f84626f2976e6dd7f9dad6627e21b352dee84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Sun, 25 Aug 2019 17:50:46 +0200 Subject: Switch to `@types/vscode` and `vscode-test` 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. --- editors/code/src/test/runTest.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 editors/code/src/test/runTest.ts (limited to 'editors/code/src/test/runTest.ts') 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 @@ +import * as path from 'path'; + +import { runTests } from 'vscode-test'; + +async function main() { + try { + // The folder containing the Extension Manifest package.json + // Passed to `--extensionDevelopmentPath` + const extensionDevelopmentPath = path.resolve(__dirname, '../../'); + + // The path to the extension test runner script + // Passed to --extensionTestsPath + const extensionTestsPath = path.resolve(__dirname, './utils/index'); + + // Download VS Code, unzip it and run the integration test + await runTests({ extensionDevelopmentPath, extensionTestsPath }); + } catch (err) { + process.exit(1); + } +} + +main(); -- cgit v1.2.3