Skip to content

Commit 61271b5

Browse files
committed
Added vscode launch file to simplify local debugging process
1 parent 0d4d55e commit 61271b5

2 files changed

Lines changed: 33 additions & 2 deletions

File tree

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/.vscode/launch.json
2-
31
/dist/
42
/dts-out/
53

.vscode/launch.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Run e2e test",
11+
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
12+
"args": [
13+
"tests/e2e/test-cases/${input:testCaseName}/index.spec.js"
14+
],
15+
"internalConsoleOptions": "openOnSessionStart"
16+
},
17+
{
18+
"type": "node",
19+
"request": "attach",
20+
"name": "Attach debugger",
21+
"skipFiles": [
22+
"<node_internals>/**"
23+
]
24+
},
25+
],
26+
"inputs": [
27+
{
28+
"type": "promptString",
29+
"id": "testCaseName",
30+
"description": "Please enter a test case name (a folder name)"
31+
}
32+
]
33+
}

0 commit comments

Comments
 (0)