Last active
August 27, 2020 11:46
-
-
Save artem-mangilev/2f45ea18e4f5a38339212f551fa6a85c to your computer and use it in GitHub Desktop.
VSCode launch configuration for debugging Mocha tests written in TypeScript.
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": [ | |
{ | |
"env": { | |
"TS_NODE_COMPILER_OPTIONS": "{\"module\":\"commonjs\"}" | |
}, | |
"args": [ | |
"-r", | |
"ts-node/register", | |
"--timeout", | |
"999999", | |
"--colors", | |
"${workspaceFolder}/test/**/*.test.ts" | |
], | |
"name": "Mocha TypeScript", | |
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", | |
"request": "launch", | |
"skipFiles": ["<node_internals>/**"], | |
"type": "node", | |
"console": "integratedTerminal", | |
"internalConsoleOptions": "neverOpen", | |
"protocol": "inspector" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment