64 lines
1.6 KiB
JSON
64 lines
1.6 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Unit Tests",
|
|
"cwd": "${workspaceRoot}",
|
|
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/mocha",
|
|
"windows": {
|
|
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/mocha.cmd"
|
|
},
|
|
"runtimeArgs": [
|
|
"--colors",
|
|
"--recursive",
|
|
"${workspaceRoot}/lib/**/*.test.js"
|
|
],
|
|
"sourceMaps": true,
|
|
"outFiles": [ "${workspaceRoot}/lib/**/*.js" ],
|
|
"internalConsoleOptions": "openOnSessionStart"
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Integration Tests",
|
|
"cwd": "${workspaceRoot}",
|
|
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/mocha",
|
|
"windows": {
|
|
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/mocha.cmd"
|
|
},
|
|
"runtimeArgs": [
|
|
"--colors",
|
|
"--recursive",
|
|
"${workspaceRoot}/lib/**/*.api.js"
|
|
],
|
|
"sourceMaps": true,
|
|
"outFiles": [ "${workspaceRoot}/lib/**/*.js" ],
|
|
"internalConsoleOptions": "openOnSessionStart"
|
|
},
|
|
{
|
|
"type": "chrome",
|
|
"request": "launch",
|
|
"name": "Demo Client",
|
|
"url": "http://127.0.0.1:3000",
|
|
"webRoot": "${workspaceFolder}/"
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Demo Server",
|
|
"runtimeExecutable": "npm",
|
|
"runtimeArgs": [
|
|
"run",
|
|
"start-debug"
|
|
],
|
|
"port": 9229,
|
|
"serverReadyAction": {
|
|
"action": "openExternally",
|
|
"pattern": "App listening to (http://.*?:[0-9]+)"
|
|
}
|
|
}
|
|
]
|
|
}
|