dance/test/run.ts

21 lines
434 B
TypeScript
Raw Permalink Normal View History

2020-10-13 15:35:08 +03:00
import * as path from "path";
2020-04-15 01:51:48 +03:00
import { runTests } from "@vscode/test-electron";
2020-04-15 01:51:48 +03:00
async function go() {
2020-04-16 23:20:39 +03:00
try {
const extensionDevelopmentPath = path.resolve(__dirname, "../..");
2020-10-13 15:35:08 +03:00
const extensionTestsPath = path.resolve(__dirname, "./suite");
2020-04-15 01:51:48 +03:00
2020-04-16 23:20:39 +03:00
await runTests({
extensionDevelopmentPath,
extensionTestsPath,
launchArgs: ["--disable-extensions"],
2020-10-13 15:35:08 +03:00
});
2020-04-16 23:20:39 +03:00
} catch (err) {
2020-10-13 15:35:08 +03:00
process.exit(1);
2020-04-16 23:20:39 +03:00
}
2020-04-15 01:51:48 +03:00
}
2020-10-13 15:35:08 +03:00
go();