Last active
July 24, 2018 21:12
-
-
Save xendke/4fd1e6e1db7d6a80792645c42ae6440b to your computer and use it in GitHub Desktop.
Debug CRA Jest using Visual Studio Code
This file contains 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": [ | |
{ | |
"name": "Debug Jest", | |
"type": "node", | |
"request": "launch", | |
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/react-scripts", | |
"runtimeArgs": [ | |
"--inspect", | |
"test" | |
], | |
"env": { | |
"NODE_ENV": "test" | |
}, | |
"args": [ | |
"--runInBand", | |
"--no-cache", | |
"--env=jsdom" | |
], | |
"cwd": "${workspaceRoot}", | |
"protocol": "inspector", | |
"console": "integratedTerminal", | |
"internalConsoleOptions": "neverOpen", | |
"port": 9229 | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment