Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Last active September 19, 2024 17:45
Show Gist options
  • Select an option

  • Save wilmoore/60baedfb9c3b26241b23d403c9aa07c2 to your computer and use it in GitHub Desktop.

Select an option

Save wilmoore/60baedfb9c3b26241b23d403c9aa07c2 to your computer and use it in GitHub Desktop.
Software Engineering :: Editor :: Text :: Visual Studio Code :: Launch :: VSCode Launch JSON for TypeScript/Node.js and Mocha

Software Engineering :: Editor :: Text :: Visual Studio Code :: Launch :: VSCode Launch JSON for TypeScript/Node.js and Mocha

⪼ Made with 💜 by Polyglot.

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "test:w (mocha)",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": [
"--colors",
"--watch-extensions",
"ts",
"--watch",
"--require",
"ts-node/register",
"-r",
"src/test/init.ts",
"${workspaceFolder}/src/**/*.spec.ts",
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"sourceMaps": true,
"cwd": "${workspaceRoot}",
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment