Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'editors/code/tests/runTests.ts')
-rw-r--r--editors/code/tests/runTests.ts24
1 files changed, 12 insertions, 12 deletions
diff --git a/editors/code/tests/runTests.ts b/editors/code/tests/runTests.ts
index 6172cc7d5f..08632ec3b4 100644
--- a/editors/code/tests/runTests.ts
+++ b/editors/code/tests/runTests.ts
@@ -1,43 +1,43 @@
-import * as path from 'path';
-import * as fs from 'fs';
+import * as path from "path";
+import * as fs from "fs";
-import { runTests } from '@vscode/test-electron';
+import { runTests } from "@vscode/test-electron";
async function main() {
// The folder containing the Extension Manifest package.json
// Passed to `--extensionDevelopmentPath`
- const extensionDevelopmentPath = path.resolve(__dirname, '../../');
+ const extensionDevelopmentPath = path.resolve(__dirname, "../../");
// Minimum supported version.
- const jsonData = fs.readFileSync(path.join(extensionDevelopmentPath, 'package.json'));
+ const jsonData = fs.readFileSync(path.join(extensionDevelopmentPath, "package.json"));
const json = JSON.parse(jsonData.toString());
let minimalVersion: string = json.engines.vscode;
- if (minimalVersion.startsWith('^')) minimalVersion = minimalVersion.slice(1);
+ if (minimalVersion.startsWith("^")) minimalVersion = minimalVersion.slice(1);
const launchArgs = ["--disable-extensions", extensionDevelopmentPath];
// All test suites (either unit tests or integration tests) should be in subfolders.
- const extensionTestsPath = path.resolve(__dirname, './unit/index');
+ const extensionTestsPath = path.resolve(__dirname, "./unit/index");
// Run tests using the minimal supported version.
await runTests({
version: minimalVersion,
launchArgs,
extensionDevelopmentPath,
- extensionTestsPath
+ extensionTestsPath,
});
// and the latest one
await runTests({
- version: 'stable',
+ version: "stable",
launchArgs,
extensionDevelopmentPath,
- extensionTestsPath
+ extensionTestsPath,
});
}
-main().catch(err => {
+main().catch((err) => {
// eslint-disable-next-line no-console
- console.error('Failed to run tests', err);
+ console.error("Failed to run tests", err);
process.exit(1);
});