This document provides an example of how you can configure vscode to test with Intern.
You will need to edit your .vscode/launch.json
in the root of your project and follow the example JSON below.
This will provide two "tasks", both being the unit tests, in Node.js and Chrome. The latter needs the Chrome Debugger
plugin installed in vscode. You need to tailor the below to match you environment and assumes that intern
is installed in
the root of node_modules
and that you are serving your project root up at localhost:8080
.
There is more documentation of the launch.json
at Debugging,
including if you have a build step that you want to run before launching the debugger.
You should be able to set breakpoints and step through your tests and code.
For Intern 4, you can find a configuration example here