Skip to content

Commit

Permalink
Merge pull request #6034 from desktop/bring-back-vscode-testing
Browse files Browse the repository at this point in the history
add support for debugging jest tests in vscode
  • Loading branch information
shiftkey committed Oct 31, 2018
2 parents fb02a6a + caa0484 commit 019b78d
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .vscode/launch.json
@@ -0,0 +1,46 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Jest All",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
"args": [
"--silent",
"--config",
"${workspaceFolder}/jest.config.js"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"env":{
"ELECTRON_RUN_AS_NODE": "1"
},
"windows": {
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd"
},
},
{
"type": "node",
"request": "launch",
"name": "Jest Current",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
"args": [
"--silent",
"--config",
"${workspaceFolder}/jest.config.js",
"${relativeFile}"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"env":{
"ELECTRON_RUN_AS_NODE": "1"
},
"windows": {
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd"
},
},
]
}

0 comments on commit 019b78d

Please sign in to comment.