Created
February 6, 2019 21:02
-
-
Save danylkaaa/da0a4e8a026f73514eb7c9ac13df93d7 to your computer and use it in GitHub Desktop.
vscode debug mocha
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": "debug", | |
"type": "node", | |
"request": "launch", | |
"cwd": "${workspaceFolder}", | |
"runtimeExecutable": "yarn", | |
"runtimeArgs": ["debug"], | |
"port": 9229, | |
"env": { "DEBUG": "app:*", "NODE_ENV": "development" }, | |
"console": "internalConsole" | |
}, | |
{ | |
"name": "mocha debug", | |
"type": "node", | |
"request": "launch", | |
"cwd": "${workspaceFolder}", | |
"runtimeExecutable": "${workspaceFolder}/node_modules/mocha/bin/mocha", | |
"args": [ | |
"${file}", | |
"--no-timeouts", | |
"--inspect-brk", | |
"--opts", | |
"${workspaceFolder}/test/mocha.opts" | |
], | |
"env": { "DEBUG": "app:*", "NODE_ENV": "test" }, | |
"console": "internalConsole" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment