Skip to content

Commit 9a4c3d1

Browse files
committed
feat: add vscode debug configuration
1 parent a5fd5e8 commit 9a4c3d1

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.vscode/launch.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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": "attach",
10+
"name": "Attach to start:dev",
11+
"protocol": "inspector",
12+
"port": 9229,
13+
"restart": true,
14+
"cwd": "${workspaceRoot}"
15+
}
16+
]
17+
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"build": "tsc",
88
"start": "node dist/index.js",
99
"start:dev": "ts-node-dev --inspect --transpile-only --ignore-watch node_modules --respawn src/index.ts",
10-
"test": "jest"
10+
"test": "jest --runInBand",
11+
"test:dev": "node --inspect ./node_modules/jest/bin/jest.js --runInBand"
1112
},
1213
"author": "Samuel Caçador",
1314
"license": "MIT",

0 commit comments

Comments
 (0)