Skip to content

Commit dc95ad5

Browse files
authored
Enable debugging of node tests via vscode (#56)
1 parent 407338a commit dc95ad5

3 files changed

Lines changed: 24 additions & 2 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44
/src/obj
55
*.user
66
/NoSQLProviderTestsPack.js
7-
/.vscode
87
/dist

.vscode/launch.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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": "Debug Mocha Tests",
11+
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
12+
"args": [
13+
"--timeout",
14+
"5000",
15+
"--colors",
16+
"${workspaceFolder}/dist/tests/NoSqlProviderTests.js"
17+
],
18+
"console": "integratedTerminal",
19+
"internalConsoleOptions": "neverOpen"
20+
}
21+
]
22+
}

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"noImplicitThis": true,
1414
"noUnusedLocals": true,
1515
"forceConsistentCasingInFileNames": true,
16-
"strict": true
16+
"strict": true,
17+
"sourceMap": true
1718
},
1819

1920
"filesGlob": [

0 commit comments

Comments
 (0)