Skip to content

Instantly share code, notes, and snippets.

@suresk
Last active February 24, 2017 18:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suresk/8be3b117d9a55b72e575d3e1b2e28894 to your computer and use it in GitHub Desktop.
Save suresk/8be3b117d9a55b72e575d3e1b2e28894 to your computer and use it in GitHub Desktop.
Run a single mocha file in VS Code, with a dummy mocha.opts
{
"name": "Debug with mocha",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"stopOnEntry": false,
"args": ["--no-timeouts", "--opts", "${workspaceRoot}/test/mocha-debug.opts", "${relativeFile}"],
"cwd": "${workspaceRoot}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment