Skip to content

Commit 1e13c24

Browse files
committed
use vscode debugger for tests
Signed-off-by: shmck <[email protected]>
1 parent f1353b3 commit 1e13c24

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
build
2-
node_modules
2+
node_modules
3+
coverage

.vscode/launch.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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": "Jest All",
11+
"program": "${workspaceFolder}/node_modules/.bin/jest",
12+
"args": ["--runInBand"],
13+
"console": "integratedTerminal",
14+
"internalConsoleOptions": "neverOpen",
15+
"windows": {
16+
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
17+
}
18+
}
19+
]
20+
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"moduleFileExtensions": [
5353
"js",
5454
"ts"
55-
]
55+
],
56+
"collectCoverage": true
5657
}
5758
}

0 commit comments

Comments
 (0)