添加调试配置

This commit is contained in:
liaoxuezhi 2019-07-03 19:48:01 +08:00
parent 60a950c522
commit db4729b8e8

71
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,71 @@
{
// 使 IntelliSense
//
// 访: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Jest All",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": ["--runInBand"],
"sourceMaps": true,
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"runtimeExecutable": "/usr/local/bin/node",
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
}
},
{
"type": "node",
"request": "launch",
"name": "Jest Current File",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": [
"--no-cache",
"--runInBand",
"${relativeFile}"
],
"sourceMaps": true,
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"runtimeExecutable": "/usr/local/bin/node",
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
}
},
{
"type": "node",
"request": "launch",
"name": "Jest Current File Specified test",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": [
"--no-cache",
"--runInBand",
"${relativeFile}",
"-t",
"${input:testName}"
],
"sourceMaps": true,
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"runtimeExecutable": "/usr/local/bin/node",
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
}
}
],
"inputs": [
{
"id": "testName",
"type": "promptString",
"default": "",
"description": "Run only tests with a name that matches the regex pattern."
}
]
}