Skip to content

Commit

Permalink
#19 Add debug config for current test
Browse files Browse the repository at this point in the history
  • Loading branch information
tscz committed Jan 18, 2020
1 parent 345b961 commit c4d3234
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"webRoot": "${workspaceFolder}"
},
{
"name": "Debug CRA Tests",
"name": "Debug All CRA Tests",
"type": "node",
"request": "launch",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/react-scripts",
Expand All @@ -34,6 +34,27 @@
"CI": "true"
},
"disableOptimisticBPs": true
},
{
"name": "Debug Current CRA Test",
"type": "node",
"request": "launch",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/react-scripts",
"args": [
"test",
"${fileBasenameNoExtension}",
"--runInBand",
"--no-cache",
"--watchAll=false"
],
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"env": {
"CI": "true"
},
"disableOptimisticBPs": true
}
]
}

0 comments on commit c4d3234

Please sign in to comment.