{
  "version": "0.1.0",
  "command": "node",
  "isShellCommand": true,
  "showOutput": "always",
  "suppressTaskName": true,
  "tasks": [
    {
      "taskName": "test file",
      "args": ["node_modules/.bin/mocha", "${file}"],
      "isTestCommand": true
    }
  ]
}

{
  "version": "0.1.0",
  "isShellCommand": true,
  "showOutput": "always",
  "suppressTaskName": true,
  "tasks": [
    {
      "command": "node",
      "taskName": "test file",
      "args": ["node_modules/.bin/mocha", "${file}"],
      "isTestCommand": true
    },
    {
      "command": "npm",
      "taskName": "test",
      "args": ["test"],
      "isBuildCommand": true
    }
  ]
}

Add a build task to run all tests
Add a build task to run all tests

There is also a global "build task" in VSCode with a predefined key shortcut.
Use this task to run all tests from the IDE.
