Skip to content

Instantly share code, notes, and snippets.

@blackfry
Created April 14, 2019 21:49
Show Gist options
  • Save blackfry/6309e98e12ec01d4ca4e7be0b2564b36 to your computer and use it in GitHub Desktop.
Save blackfry/6309e98e12ec01d4ca4e7be0b2564b36 to your computer and use it in GitHub Desktop.
vscode launch json for jest runner
{
// 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": "attach",
"name": "Attach",
"port": 9229
},
{
"type": "node",
"request": "attach",
"name": "Node: Nodemon",
"processId": "${command:PickProcess}",
"restart": true,
"protocol": "inspector"
},
{
"type": "node",
"request": "launch",
"name": "Debug Tests",
"program": "${workspaceRoot}/node_modules/jest/bin/jest.js",
"cwd": "${workspaceRoot}",
"args": ["--i", "--config", "jest.json"]
},
{
"name": "Launch Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}"],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/out/src"],
"preLaunchTask": "npm"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment