Skip to content

Instantly share code, notes, and snippets.

@alegalviz
Last active March 12, 2021 12:26
Show Gist options
  • Save alegalviz/3b542cd2e5c820ff2884e4001d1f3d07 to your computer and use it in GitHub Desktop.
Save alegalviz/3b542cd2e5c820ff2884e4001d1f3d07 to your computer and use it in GitHub Desktop.
{
// 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": "Current Debug Tests",
"program": "${workspaceRoot}/node_modules/jest/bin/jest.js",
"cwd": "${workspaceRoot}",
"args": [
"--i",
"${relativeFile}"
]
}, {
"type": "node",
"request": "launch",
"name": "Debug Tests",
"program": "${workspaceRoot}/node_modules/jest/bin/jest.js",
"cwd": "${workspaceRoot}",
"args": [
"--i",
"${workspaceRoot}/test/unit/spec"
]
},
{
"name": "watch tests",
"type": "node",
"request": "launch",
"runtimeArgs": [
"--inspect-brk",
"./node_modules/@vue/cli-service/bin/vue-cli-service.js",
"test:unit",
"--runInBand",
"--watch"
],
"cwd": "${workspaceFolder}",
"protocol": "inspector",
"disableOptimisticBPs": true,
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"port": 9229,
"smartStep": true,
"skipFiles": ["<node_internals>/**"],
},
{
"name": "current test",
"type": "node",
"request": "launch",
"runtimeArgs": [
"--inspect-brk",
"./node_modules/@vue/cli-service/bin/vue-cli-service.js",
"test:unit",
"--i",
"${relativeFile}",
"--watch",
],
"cwd": "${workspaceFolder}",
"protocol": "inspector",
"disableOptimisticBPs": true,
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"port": 9229,
"smartStep": true,
"skipFiles": ["<node_internals>/**"],
},
{
"name": "all-tests",
"type": "node",
"request": "launch",
"runtimeArgs": [
"./node_modules/@vue/cli-service/bin/vue-cli-service.js",
"test:unit",
"--coverage"
],
"cwd": "${workspaceFolder}",
"protocol": "inspector",
"disableOptimisticBPs": true,
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"port": 9229,
"smartStep": true,
"skipFiles": ["<node_internals>/**"],
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment