Created
December 14, 2018 08:08
-
-
Save jimmy-collazos/50ec120a6ef6a51ba5a3122345519f70 to your computer and use it in GitHub Desktop.
VS Code config - Debug Jest tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "attach", | |
"name": "Launch attach by process ID", | |
"processId": "${command:PickProcess}" | |
}, | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Jest All", | |
"program": "${workspaceFolder}/node_modules/.bin/jest", | |
"args": ["--runInBand", "-c", "test/unit/jest.config.js"], | |
"console": "integratedTerminal", | |
"internalConsoleOptions": "neverOpen", | |
"windows": { | |
"program": "${workspaceFolder}/node_modules/jest/bin/jest", | |
} | |
}, | |
{ | |
"type": "node", | |
"request": "launch", | |
"cwd": "${workspaceFolder}", | |
"name": "Jest Current File", | |
"program": "${workspaceFolder}/node_modules/.bin/jest", | |
"args": ["-c", "test/unit/jest.config.js","${relativeFile}"], | |
"console": "integratedTerminal", | |
"internalConsoleOptions": "neverOpen", | |
"windows": { | |
"program": "${workspaceFolder}/node_modules/jest/bin/jest", | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment