Skip to content

VS Code Mocha Test (JavaScript)

reyou edited this page Jun 8, 2018 · 2 revisions

Below VS Code configuration will allow you to run current Mocha Test File with debugger attached.

 {
      "type": "node",
      "request": "launch",
      "name": "Mocha Current File",
      "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
      "args": ["-u", "tdd", "--timeout", "999999", "--colors", "${file}"],
      "internalConsoleOptions": "openOnSessionStart"
    }
Clone this wiki locally