-
-
Save clebercar/7450cc7fc718a2c5627d5c45e6020539 to your computer and use it in GitHub Desktop.
debugging launch.json
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
| //For Create-react-app | |
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Debug CRA Tests", | |
| "type": "node", | |
| "request": "launch", | |
| "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/react-scripts", | |
| "args": ["test", "--runInBand", "--no-cache", "--env=jsdom"], | |
| "cwd": "${workspaceRoot}", | |
| "protocol": "inspector", | |
| "console": "integratedTerminal", | |
| "internalConsoleOptions": "neverOpen" | |
| } | |
| ] | |
| } |
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
| //for linux and mac | |
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Debug Jest Tests", | |
| "type": "node", | |
| "request": "launch", | |
| "runtimeArgs": [ | |
| "--inspect-brk", | |
| "${workspaceRoot}/node_modules/.bin/jest", | |
| "--runInBand" | |
| ], | |
| "console": "integratedTerminal", | |
| "internalConsoleOptions": "neverOpen", | |
| "port": 9229 | |
| } | |
| ] | |
| } |
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
| //for windows | |
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Debug Jest Tests", | |
| "type": "node", | |
| "request": "launch", | |
| "runtimeArgs": [ | |
| "--inspect-brk", | |
| "${workspaceRoot}/node_modules/jest/bin/jest.js", | |
| "--runInBand" | |
| ], | |
| "console": "integratedTerminal", | |
| "internalConsoleOptions": "neverOpen", | |
| "port": 9229 | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment