Skip to content

Instantly share code, notes, and snippets.

@constantm
Created September 26, 2018 07:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save constantm/15812fa2b91d71d6434b379c4c78d6ba to your computer and use it in GitHub Desktop.
Save constantm/15812fa2b91d71d6434b379c4c78d6ba to your computer and use it in GitHub Desktop.
Get VSCode debug and breakpoints to work with Vue Cli and Jest
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"name": "vue-cli-service-tests",
"request": "launch",
"env": {
"NODE_ENV": "test"
},
"args": [
"--inspect-brk",
"${workspaceFolder}/node_modules/@vue/cli-service/bin/vue-cli-service.js",
"test:unit",
"--runInBand"
],
"cwd": "${workspaceFolder}",
"sourceMaps": true,
"outFiles": ["${workspaceFolder}/**/*.js"],
"console": "integratedTerminal",
"protocol": "inspector",
"internalConsoleOptions": "neverOpen"
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment