diff --git a/.vscode/launch.json b/.vscode/launch.json index d4e0208..a7f9d54 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -3,13 +3,43 @@ // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", - "configurations": [ + "configurations": [ { "type": "node", "request": "attach", "name": "Attach by Process ID", "processId": "${command:PickProcess}", "protocol": "inspector" - } + }, + { + "type": "node", + "request": "launch", + "name": "Jest Current File", + "program": "${workspaceFolder}/node_modules/.bin/jest", + "args": [ + "${fileBasenameNoExtension}", + "--detectOpenHandles" + ], + "console": "integratedTerminal", + "internalConsoleOptions": "neverOpen", + "disableOptimisticBPs": true, + "windows": { + "program": "${workspaceFolder}/node_modules/jest/bin/jest", + } + }, + { + "type": "node", + "request": "launch", + "name": "Jest all", + "runtimeExecutable": "npm", + "runtimeArgs": [ + "run-script", + "test" + ], + "port": 9229, + "skipFiles": [ + "/**" + ] + }, ] } \ No newline at end of file