From c12be8daf60cd3d5554e9f5465aa5e8a5187d288 Mon Sep 17 00:00:00 2001 From: Kirill Dubovitskiy Date: Mon, 7 Aug 2023 14:54:37 -0700 Subject: Refactor test scripts and update build configurations - Added a new esbuild for: - bundling test runners (run tests on vscode + mocha runner) - bundling all tests in the project - Some opinionated renamings / moving test related things around - Changed output directory in tsconfig to avoid overriding the entire out directory - bundles tests also go there Some poking around trying to deprecate jest as it is not used and mocha is more often used for vscode extension testing. Though I assume jest was added to test GUI within extension. This work was started because there are compilation issues with the current setup and neither of the tests are actually working so figured getting one to a working spot is a good start --- extension/src/test/runTest.ts | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 extension/src/test/runTest.ts (limited to 'extension/src/test/runTest.ts') diff --git a/extension/src/test/runTest.ts b/extension/src/test/runTest.ts deleted file mode 100644 index e810ed5b..00000000 --- a/extension/src/test/runTest.ts +++ /dev/null @@ -1,23 +0,0 @@ -import * as path from "path"; - -import { runTests } from "@vscode/test-electron"; - -async function main() { - try { - // The folder containing the Extension Manifest package.json - // Passed to `--extensionDevelopmentPath` - const extensionDevelopmentPath = path.resolve(__dirname, "../../"); - - // The path to test runner - // Passed to --extensionTestsPath - const extensionTestsPath = path.resolve(__dirname, "./suite/index"); - - // Download VS Code, unzip it and run the integration test - await runTests({ extensionDevelopmentPath, extensionTestsPath }); - } catch (err) { - console.error("Failed to run tests"); - process.exit(1); - } -} - -main(); -- cgit v1.2.3-70-g09d2