Last active
October 29, 2023 00:28
-
-
Save JonRC/a626bb008812e44b63e101c18acb7b47 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