Created
May 14, 2022 08:54
-
-
Save gpsarkar/d3be9efbcc3b3224b8d3813cfbc6e944 to your computer and use it in GitHub Desktop.
Launch.json to debug mocha tests in vs code
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
{ | |
"configurations": [ | |
{ | |
"args": [ | |
"${workspaceFolder}/spec/*.spec.js", | |
"--require", | |
"@babel/register" | |
], | |
"internalConsoleOptions": "openOnSessionStart", | |
"name": "Mocha Tests", | |
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", | |
"request": "launch", | |
"skipFiles": [ | |
"<node_internals>/**" | |
], | |
"type": "node", | |
"cwd": "${workspaceFolder}", | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment