Skip to content

Instantly share code, notes, and snippets.

@kitsonk
Last active April 27, 2017 10:12
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 kitsonk/05126b7b9c9457fa28c3c887c854b0b1 to your computer and use it in GitHub Desktop.
Save kitsonk/05126b7b9c9457fa28c3c887c854b0b1 to your computer and use it in GitHub Desktop.
VSCode running Unit Tests under Node

Configuring VSCode to Run Dojo 2 Unit Test

The launch.json can be added to .vscode directory of your project.

This is for most @dojo/* packages that use grunt-dojo2. A different configuration would be required for applications created with dojo create app.

{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Run Unit Tests",
"program": "${workspaceRoot}/node_modules/.bin/intern-client",
"args": [
"reporters=${workspaceRoot}/node_modules/grunt-dojo2/lib/intern/Reporter",
"config=_dist/tests/intern",
"excludeInstrumentation=."
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment