-
-
Save upman/5f94f74fa2ae7cad41426e09f00981ca to your computer and use it in GitHub Desktop.
Debug mocha tests using Visual Studio Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.1.0", | |
// List of configurations. Add new configurations or edit existing ones. | |
// ONLY "node" and "mono" are supported, change "type" to switch. | |
"configurations": [ | |
{ | |
// Name of configuration; appears in the launch configuration drop down menu. | |
"name": "Run app.js", | |
// Type of configuration. Possible values: "node", "mono". | |
"type": "node", | |
// Workspace relative or absolute path to the program. | |
"program": "app.js", | |
// Automatically stop program after launch. | |
"stopOnEntry": false, | |
// Command line arguments passed to the program. | |
"args": [], | |
// Workspace relative or absolute path to the working directory of the program being debugged. Default is the current workspace. | |
"cwd": ".", | |
// Workspace relative or absolute path to the runtime executable to be used. Default is the runtime executable on the PATH. | |
"runtimeExecutable": null, | |
// Environment variables passed to the program. | |
"env": { "NODE_ENV": "production"} | |
}, | |
{ | |
// Name of configuration; appears in the launch configuration drop down menu. | |
"name": "Run mocha", | |
// Type of configuration. Possible values: "node", "mono". | |
"type": "node", | |
// Workspace relative or absolute path to the program. | |
"program": "/Users/gp/Projects/evol_dealermgmt/node_modules/mocha/bin/_mocha", | |
// Automatically stop program after launch. | |
"stopOnEntry": false, | |
// Command line arguments passed to the program. | |
"args": ["test/unit.js"], | |
// Workspace relative or absolute path to the working directory of the program being debugged. Default is the current workspace. | |
"cwd": ".", | |
// Workspace relative or absolute path to the runtime executable to be used. Default is the runtime executable on the PATH. | |
"runtimeExecutable": null, | |
// Environment variables passed to the program. | |
"env": { "NODE_ENV": "production"} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment