Skip to content

Commit

Permalink
Update vscode launch configuration and e2e test file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Jun 9, 2024
1 parent 4d6f322 commit 52f3f80
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@
"args": [
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/client/out/e2e/suite/index"
"--extensionTestsPath=${workspaceFolder}/client/out/tests/e2e/suite/index"
],
"outFiles": ["${workspaceFolder}client/out/e2e/**/*.js"],
"outFiles": ["${workspaceFolder}client/out/tests/e2e/**/*.js"],
"preLaunchTask": {
"type": "npm",
"script": "test-compile"
Expand Down
6 changes: 3 additions & 3 deletions client/tests/e2e/suite/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as vscode from "vscode";
import * as path from "path";
import * as assert from "assert";
import * as path from "path";
import * as vscode from "vscode";

/**
* Contains the document and its corresponding editor
Expand Down Expand Up @@ -60,7 +60,7 @@ export async function waitForDiagnostics(docUri: vscode.Uri, timeoutInMillisecon
}

export const getDocPath = (filePath: string): string => {
return path.resolve(__dirname, path.join("..", "..", "..", "..", "test-data", filePath));
return path.resolve(__dirname, path.join("..", "..", "..", "..", "..", "test-data", filePath));
};

export const getDocUri = (filePath: string): vscode.Uri => {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
"postinstall": "cd client && npm install && cd ../server && npm install && cd ..",
"lint": "eslint ./client/src ./server --ext .ts,.tsx",
"format": "prettier --write .",
"clean": "rimraf client/dist && rimraf server/dist",
"clean": "rimraf client/dist && rimraf client/out && cd server && npm run clean && cd ..",
"compile-servers": "cd server && npm run compile",
"compile": "npm run clean && webpack --config ./client/webpack.config.js && npm run compile-servers",
"vscode:prepublish": "npm run compile",
Expand All @@ -230,8 +230,8 @@
"test-client": "cd client && npm test",
"test-server": "cd server && npm test",
"test-compile": "tsc --project ./client --outDir client/out",
"pretest:e2e": "npm run compile && npm run test-compile",
"test:e2e": "node ./client/out/e2e/runTests.js",
"pretest:e2e": "npm run clean && npm run compile && npm run test-compile",
"test:e2e": "node ./client/out/tests/e2e/runTests.js",
"test-browser": "vscode-test-web --extensionDevelopmentPath=. ./test-data"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"author": "davelopez",
"license": "MIT",
"scripts": {
"clean": "rimraf ./gx-workflow-ls-native/dist && rimraf ./gx-workflow-ls-format2/dist",
"compile-native-server": "webpack --config ./gx-workflow-ls-native/webpack.config.js",
"compile-format2-server": "webpack --config ./gx-workflow-ls-format2/webpack.config.js",
"compile": "npm run compile-native-server && npm run compile-format2-server",
Expand Down

0 comments on commit 52f3f80

Please sign in to comment.