-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathlaunch.json
52 lines (52 loc) · 1.33 KB
/
launch.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug API Server",
"args": ["${workspaceFolder}/server/start-server.ts"],
"cwd": "${workspaceFolder}",
"protocol": "inspector",
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
"env": {
"NODE_ENV": "dev",
"DB_CONNECTION": "defaultdb",
"SERVER_PORT": "3000"
}
},
{
"type": "node",
"request": "launch",
"name": "Debug Start Script",
"args": ["${workspaceFolder}/dev/start.ts"],
"cwd": "${workspaceFolder}",
"protocol": "inspector",
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
"env": {
"TS_NODE_PROJECT": "${workspaceFolder}/tsconfig-base.json"
}
},
{
"name": "Debug API Tests",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"args": [
"--timeout",
"999999999",
"-r",
"ts-node/register",
"./server/**/*.spec.ts"
],
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"internalConsoleOptions": "openOnSessionStart",
"env": {
"NODE_ENV": "test",
"DB_CONNECTION": "defaultdb_test",
"SERVER_PORT": "3037"
}
}
]
}