Skip to content
Lucas Isasmendi edited this page Oct 10, 2018 · 2 revisions

Visual Studio Code

How to debug Typescript and Jasmine unit test

  1. create a launch.json file
  2. add the following code (per each unit test file) in configurations array
{
  "type": "node",
  "request": "launch",
  "name": "iov-keycontrol unit-test userprofile",
  "program": "${workspaceRoot}/node_modules/jasmine/bin/jasmine.js",
  "args": [
      "${workspaceRoot}/packages/iov-keycontrol/build/userprofile.spec.js"
  ],
  "console": "integratedTerminal",
  "internalConsoleOptions": "neverOpen"
}
  1. put the breakpoints in the packages/iov-keycontrol/src/userprofile.ts file, press play and voilà
Clone this wiki locally