-
Notifications
You must be signed in to change notification settings - Fork 585
/
Copy pathlaunch.json
234 lines (234 loc) · 7.25 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
{
// Use IntelliSense to learn about possible Node.js debug 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": "attach",
"name": "Node: Attach to process",
"presentation": {
"hidden": true
}
},
{
"type": "node",
"presentation": {
"group": "realm"
},
"name": "Node: Integration tests",
"request": "launch",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"cwd": "${workspaceFolder}/integration-tests/tests",
"runtimeExecutable": "npm",
"args": [
"run",
"test",
"--",
"--grep='${input:grepPattern}'"
]
},
{
"type": "lldb",
"presentation": {
"group": "realm"
},
"request": "attach",
"name": "LLDB: Attach to process",
"pid": "${command:pickProcess}"
},
{
"name": "LLDB: Attach to Android Emulator",
"type": "lldb",
"request": "attach",
"pid": "${input:pid}",
"initCommands": [
"platform select remote-android",
"platform connect connect://localhost:9123",
"settings set target.inherit-env false",
],
},
{
"type": "lldb",
"request": "launch",
"name": "LLDB: Node REPL",
"program": "node",
"args": [
"--expose_gc"
],
"preLaunchTask": "Build Node Tests"
},
{
"type": "lldb",
"request": "launch",
"name": "LLDB: Integration tests",
"program": "node",
"cwd": "${workspaceRoot}/integration-tests/tests",
"env": {
"CONTEXT": "appTemplatesPath=../realm-apps"
},
"args": [
"--inspect",
"--import=tsx",
"--expose_gc",
"--enable-source-maps",
"--no-warnings",
"${workspaceRoot}/node_modules/mocha/lib/cli/cli.js",
"--require",
"src/node/inject-dev-environment.ts",
"src/node/index.ts",
"--timeout",
"10000",
"--grep",
"${input:integrationTestFilter}"
]
},
{
"type": "node",
"presentation": {
"group": "realm"
},
"request": "launch",
"name": "Node: Debug integration tests",
"cwd": "${workspaceFolder}/integration-tests/tests",
"console": "integratedTerminal",
"program": "${workspaceRoot}/node_modules/mocha/lib/cli/cli.js",
"runtimeArgs": [
"--import=tsx",
"--expose_gc",
"--enable-source-maps",
"--no-warnings"
],
"args": [
"--require",
"src/node/inject-dev-environment.ts",
"src/node/index.ts",
"--timeout",
"10000",
"--grep",
"${input:integrationTestFilter}"
]
},
{
"type": "lldb",
"presentation": {
"group": "realm/react"
},
"name": "LLDB: Realm React Tests",
"request": "launch",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"cwd": "${workspaceFolder}/packages/realm-react",
"program": "node",
"args": [
"--inspect",
"${workspaceFolder}/node_modules/.bin/jest",
"--runInBand",
"--watchAll=false",
"--testNamePattern=${input:testNamePattern}"
]
},
{
"type": "node",
"name": "Node: Realm React Tests",
"request": "launch",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"cwd": "${workspaceFolder}/packages/realm-react",
"runtimeExecutable": "npm",
"args": [
"run",
"test",
"--",
"--runInBand",
"--watchAll=false",
"--testNamePattern='${input:testNamePattern}'"
]
},
{
"type": "node",
"name": "Node Babel Plugin Tests",
"request": "launch",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"cwd": "${workspaceFolder}/packages/babel-plugin",
"runtimeExecutable": "npm",
"args": ["run", "test", "--", "--runInBand", "--watchAll=false", "--testNamePattern=${input:testNamePattern}"]
},
{
"type": "node",
"request": "launch",
"name": "Debug Current JS file",
"program": "${relativeFile}",
},
{
"type": "lldb",
"request": "launch",
"name": "LLDB Debug JS file",
"program": "node",
"args": [
"${relativeFile}"
],
},
],
"compounds": [
{
"name": "LLDB & Node: Integration tests",
"presentation": {
"group": "realm",
"order": 1
},
"configurations": [
"Node: Attach to process",
"LLDB: Integration tests"
]
},
{
"name": "LLDB & Node: @realm/react",
"presentation": {
"group": "realm/react",
"order": 2
},
"configurations": [
"Node: Attach to process",
"LLDB: Realm React Tests"
]
}
],
"inputs": [
{
"id": "testFilter",
"type": "promptString",
"default": ".",
"description": "Filtering used to limit what tests are run"
},
{
"id": "integrationTestFilter",
"type": "promptString",
"default": "",
"description": "Filtering used to limit what tests are run"
},
{
"id": "testNamePattern",
"type": "promptString",
"default": "",
"description": "Jest test name pattern for filtering by test description name"
},
{
"id": "pid",
"type": "promptString",
"default": "",
"description": "PID of the app process"
},
{
"id": "grepPattern",
"type": "promptString",
"default": "",
"description": "Grep pattern for filtering by test description name"
},
]
}