Last active
August 24, 2022 13:12
-
-
Save ratpik/dc24566073d4328140a09ff67a5ba08f to your computer and use it in GitHub Desktop.
VS Code Node JS Mocha Debug Config
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
// As of 1st Feb 2022, the VSCode JS Debugger stopped detecting the node version selected using NVM | |
// Had to install and use NVS | |
// export NVS_HOME="$HOME/.nvs" | |
// git clone https://github.com/jasongin/nvs "$NVS_HOME" | |
// . "$NVS_HOME/nvs.sh" install | |
// nvs use 14 | |
// Based on the comments here: https://github.com/microsoft/vscode/issues/133521#issuecomment-956108829 | |
{ | |
// 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": "pwa-node", | |
"request": "launch", | |
"skipFiles": [ | |
"<node_internals>/**" | |
], | |
"runtimeVersion": "14.18.3", | |
"runtimeExecutable": "node", | |
"name": "Temporal Client", | |
"program": "${workspaceFolder}/api/workflows/client.js", | |
"internalConsoleOptions": "openOnSessionStart", | |
"outputCapture": "std" | |
} | |
] | |
} |
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
{ | |
// 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": "Launch Program", | |
"skipFiles": [ | |
"<node_internals>/**" | |
], | |
"program": "${workspaceFolder}/app.js", | |
"runtimeExecutable": "/usr/local/bin/node" | |
}, | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Mocha Tests Unit", | |
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", | |
"args": [ | |
"-u", | |
"bdd", | |
"--timeout", | |
"999999", | |
"--colors", | |
"${workspaceFolder}/test/unit/_bootstrap.js", | |
"${workspaceFolder}/test/unit/*/*.test.js", | |
], | |
"internalConsoleOptions": "openOnSessionStart", | |
"runtimeVersion": "18.3.0" | |
}, | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Mocha Tests Integration", | |
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", | |
"args": [ | |
"-u", | |
"bdd", | |
"--timeout", | |
"999999", | |
"--colors", | |
"${workspaceFolder}/test/integration/_bootstrap.js", | |
"${workspaceFolder}/test/integration/*/*.test.js", | |
], | |
"internalConsoleOptions": "openOnSessionStart", | |
"runtimeVersion": "18.3.0", | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment