Skip to content

Instantly share code, notes, and snippets.

@codejockie
Last active December 26, 2018 00:18
Show Gist options
  • Select an option

  • Save codejockie/38e4e7393fd9b7e18c52695412ba007c to your computer and use it in GitHub Desktop.

Select an option

Save codejockie/38e4e7393fd9b7e18c52695412ba007c to your computer and use it in GitHub Desktop.
VS Code Debugger Launch Configuration
{
// 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": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:4200",
"webRoot": "${workspaceFolder}/client/src"
},
{
"type": "chrome",
"request": "attach",
"name": "Attach to Chrome",
"port": 9222,
"webRoot": "${workspaceFolder}/client/src"
},
{
"type": "node",
"request": "attach",
"name": "Node: Nodemon",
"processId": "${command:PickProcess}",
"restart": true,
"protocol": "inspector",
},
{
"type": "node",
"request": "launch",
"name": "Jest All",
"program": "${workspaceRoot}/node_modules/jest/bin/jest",
"args": ["--runInBand"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
},
{
"type": "node",
"request": "launch",
"name": "Jest Current File",
"program": "${workspaceRoot}/node_modules/jest/bin/jest",
"args": ["${file}"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
},
{
"type": "node",
"request": "launch",
"name": "Run ES6 Tests",
"env": {
"NODE_ENV": "test"
},
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"args": [
"./__tests__/server/**/*.spec.js",
"--require", "@babel/register",
"-u", "tdd",
"--timeout", "90000",
"--colors"
],
"runtimeArgs": [
"--nolazy"
],
"sourceMaps": true
},
{
"type": "node",
"request": "launch",
"name": "Run Tests",
"env": {
"NODE_ENV": "test"
},
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"args": [
"-u", "tdd",
"--timeout", "90000",
"--colors",
"./dist/__tests__/server/**/*.spec.js"
],
"runtimeArgs": [
"--nolazy"
],
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/dist"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment