Open nathalok opened 5 years ago
Had the same thing, need to split the args into separate strings otherwise strings with spaces are wrapped in double quotes.
"args": [
"${workspaceFolder}/test/MyTests/sampleTest.js",
"--require",
"mocha-steps"
],
When I tried to debug a mocha test in Visual Studio Code its throwing the following error - ReferenceError: step is not defined
Below is the copy of my launch.json file used for debug configuration and that should reproduce the error
Launch.json
{ // 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": [
}
Visual Studio Code and Nodejs version details -