Skip to content

Instantly share code, notes, and snippets.

@arijusg
Created July 26, 2017 07:40
Show Gist options
  • Select an option

  • Save arijusg/d7854484976683ffc04fa03da6676583 to your computer and use it in GitHub Desktop.

Select an option

Save arijusg/d7854484976683ffc04fa03da6676583 to your computer and use it in GitHub Desktop.
Typescript mocha test debug setup
{
"type": "node",
"request": "launch",
"name": "Mocha Tests 2",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"protocol": "inspector",
"args": [
"-u",
"tdd",
"--no-timeouts",
"-r",
"ts-node/register",
"--colors",
"${workspaceRoot}/app/**/*.spec.ts*"
],
"outFiles": [
"${workspaceRoot}/dist"
],
"sourceMaps": true,
"cwd": "${workspaceRoot}",
"runtimeExecutable": null,
"internalConsoleOptions": "openOnSessionStart",
"stopOnEntry": false,
"env": {
"NODE_ENV": "testing"
},
"skipFiles": [
"node_modules/**/*.js",
"<node_internals>/**/*.js"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment