{
"type": "node",
"request": "launch",
"name": "Mocha Current File with Bunyan",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": [
"--require",
"bunyan",
"--timeout",
"999999",
"--colors",
"${file}"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"protocol": "inspector",
"skipFiles": [
"<node_internals>/**",
"**/node_modules/**"
],
"runtimeArgs": [
"--preserve-symlinks"
],
"env": {
"DEBUG": "nock.*",
"LOG_LEVEL": "debug"
}
}
I am trying to log logs to the terminal in a JSON formatted way. That's why I am trying to redirect Mocha outputs to Bunyan. I have this config file, but I am not sure how to set it up.
How can I achieve this?