Skip to content

Instantly share code, notes, and snippets.

@raecoo
Last active June 15, 2019 15:33
Show Gist options
  • Save raecoo/792dc07389d6e6b6f8d96e179212cee0 to your computer and use it in GitHub Desktop.
Save raecoo/792dc07389d6e6b6f8d96e179212cee0 to your computer and use it in GitHub Desktop.
TypeScript unittest in VS Code
// Ref: https://medium.com/@RupaniChirag/writing-unit-tests-in-typescript-d4719b8a0a40
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Mocha Current File",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": [
"--no-timeouts",
"--colors",
"${file}",
"--require",
"ts-node/register"
],
"console": "integratedTerminal",
"sourceMaps": true,
"internalConsoleOptions": "neverOpen"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment