workflow: cross platform vscode jest debugging (#414)

remove no longer needed proxy script
This commit is contained in:
Cr 2020-06-12 22:34:31 +08:00 committed by GitHub
parent c7cd386194
commit b015892de6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 9 deletions

7
.vscode/launch.json vendored
View File

@ -8,7 +8,7 @@
"name": "Jest", "name": "Jest",
"type": "node", "type": "node",
"request": "launch", "request": "launch",
"program": "${workspaceFolder}/scripts/jest.js", "program": "${workspaceFolder}/node_modules/.bin/jest",
"stopOnEntry": false, "stopOnEntry": false,
"args": ["${fileBasename}", "--runInBand", "--detectOpenHandles"], "args": ["${fileBasename}", "--runInBand", "--detectOpenHandles"],
"cwd": "${workspaceFolder}", "cwd": "${workspaceFolder}",
@ -19,7 +19,10 @@
"NODE_ENV": "development" "NODE_ENV": "development"
}, },
"console": "integratedTerminal", "console": "integratedTerminal",
"sourceMaps": true "sourceMaps": true,
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
}
} }
] ]
} }

View File

@ -1,7 +0,0 @@
/**
* This file is the entry for debug single test file in vscode
*
* Not using node_modules/.bin/jest due to cross platform issues, see
* https://github.com/microsoft/vscode-recipes/issues/107
*/
require('jest').run(process.argv)