fix test running from vscode

This commit is contained in:
Benjamin Pasero 2016-09-15 13:45:11 +02:00
parent bb99436dba
commit af0c083522

5
.vscode/launch.json vendored
View file

@ -6,6 +6,7 @@
"type": "node", "type": "node",
"request": "launch", "request": "launch",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", "program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"runtimeExecutable": "${execPath}",
"stopOnEntry": false, "stopOnEntry": false,
"args": [ "args": [
"--timeout", "--timeout",
@ -13,7 +14,9 @@
], ],
"cwd": "${workspaceRoot}", "cwd": "${workspaceRoot}",
"runtimeArgs": [], "runtimeArgs": [],
"env": {}, "env": {
"ELECTRON_RUN_AS_NODE": "true"
},
"sourceMaps": true, "sourceMaps": true,
"outDir": "${workspaceRoot}/out" "outDir": "${workspaceRoot}/out"
}, },