Created
August 17, 2022 06:11
-
-
Save harmandeep-singh/5637d2e274bb56798ad1c0bbb3ecc822 to your computer and use it in GitHub Desktop.
Launch.json for node app with jest single test file run prompt (dialogue box)
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": [ | |
{ | |
"name": "Launch Program", | |
"type": "node", | |
"request": "launch", | |
"skipFiles": [ | |
"<node_internals>/**" | |
], | |
"cwd": "${workspaceFolder}", | |
"runtimeExecutable": "npm", | |
"runtimeArgs": [ | |
"run-script", | |
"dev" | |
] | |
}, | |
{ | |
"name": "Debug Jest Tests", | |
"type": "node", | |
"request": "launch", | |
"runtimeArgs": [ | |
"--inspect-brk", | |
"${workspaceRoot}/node_modules/jest/bin/jest.js", | |
"--runInBand" | |
], | |
"console": "integratedTerminal", | |
"internalConsoleOptions": "neverOpen" | |
}, | |
{ | |
"name": "Debug Jest Selected Test", | |
"type": "node", | |
"request": "launch", | |
"runtimeArgs": [ | |
"--inspect-brk", | |
"${workspaceRoot}/node_modules/jest/bin/jest.js", | |
"--runInBand", | |
"--", | |
], | |
"args": ["${input:args}"], | |
"console": "integratedTerminal", | |
"internalConsoleOptions": "neverOpen" | |
} | |
] ,"inputs": [ | |
{ | |
"id": "args", | |
"type":"promptString", | |
"description": "Name of Test File E.G. : bigbang.test.js or bigbang", | |
"default": "" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment