Skip to content

Instantly share code, notes, and snippets.

@tcodes0
Created September 6, 2019 13:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tcodes0/0d65057f6bf58164487c0fd9413bb5ef to your computer and use it in GitHub Desktop.
Save tcodes0/0d65057f6bf58164487c0fd9413bb5ef to your computer and use it in GitHub Desktop.
debug jest test node vscode
// configurations is an array of objects
// add the object, select "Jest Tests" in debugger GUI (on the top left), add a breakpoint and hit F5! :rocket:
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Jest Tests",
"program": "${workspaceRoot}/node_modules/jest/bin/jest.js",
"args": ["-i"],
// "preLaunchTask": "build",
"internalConsoleOptions": "openOnSessionStart",
"outFiles": ["${workspaceRoot}/dist/**/*"],
// "envFile": "${workspaceRoot}/.env"
}
]
@tcodes0
Copy link
Author

tcodes0 commented Sep 6, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment