Skip to content

Commit a23f843

Browse files
committed
Fix Unit Test launch configuration
1 parent 4828d90 commit a23f843

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

.vscode/launch.json

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@
194194
{
195195
"type": "node",
196196
"request": "launch",
197-
"name": "Unit Tests",
198-
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
197+
"name": "Run Unit Tests",
198+
"program": "${workspaceFolder}/test/electron/index.js",
199199
"runtimeExecutable": "${workspaceFolder}/.build/electron/Code - OSS.app/Contents/MacOS/Electron",
200200
"windows": {
201201
"runtimeExecutable": "${workspaceFolder}/.build/electron/Code - OSS.exe"
@@ -205,14 +205,9 @@
205205
},
206206
"outputCapture": "std",
207207
"args": [
208-
"--delay",
209-
"--timeout",
210-
"2000"
208+
"--remote-debugging-port=9222"
211209
],
212210
"cwd": "${workspaceFolder}",
213-
"env": {
214-
"ELECTRON_RUN_AS_NODE": "true"
215-
},
216211
"outFiles": [
217212
"${workspaceFolder}/out/**/*.js"
218213
]
@@ -269,6 +264,13 @@
269264
"Launch VS Code",
270265
"Attach to Extension Host"
271266
]
272-
}
267+
},
268+
{
269+
"name": "Debug Unit Tests",
270+
"configurations": [
271+
"Attach to VS Code",
272+
"Run Unit Tests"
273+
]
274+
},
273275
]
274276
}

0 commit comments

Comments
 (0)