Last active
September 18, 2022 08:19
-
-
Save joelharkes/8a015929c1bef2430512b6ad1e1c1c0c to your computer and use it in GitHub Desktop.
Debug ts-mocha in vs code (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.2.0", | |
"configurations": [ | |
{ | |
"name": "Run ts-mocha File", | |
"type": "node", | |
"request": "launch", | |
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/ts-mocha", | |
"runtimeArgs": [ | |
"${file}" | |
], | |
"protocol": "inspector" | |
} | |
] | |
} |
A late comment but: you saved me from minutes or hours of trying. Thank you
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can add environment variables if u need them for test environment.
eg: