File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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"
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 ]
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}
You can’t perform that action at this time.
0 commit comments