Skip to content

Commit 07bd2dc

Browse files
committed
Added configuration for running core tests.
1 parent afaa4d1 commit 07bd2dc

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
.vscode/
1+
/.vscode/*
2+
!/.vscode/launch.json
23
.DS_Store
34
.tmp
45
tmp

.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": "Run core tests",
11+
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
12+
"args": [
13+
"${workspaceRoot}/lib/spec/core/*.js"
14+
],
15+
"cwd": "${workspaceRoot}",
16+
"outFiles": [],
17+
"internalConsoleOptions": "openOnSessionStart"
18+
}
19+
]
20+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ These steps are not required to use this library.
287287

288288
```npm pack``` bundles the npm module.
289289

290-
```npm test``` runs tests of the core library (URL parsing, mock responses, etc)
290+
```npm test``` runs tests of the core library (URL parsing, mock responses, etc). You can also set breakpoints and run this from within Visual Studio Code by selecting the *Run core test* configuration from the Debug view.
291291

292292
```npm run test:types``` to run tests against the Graph API for users, groups, Excel, OneNote, etc.
293293

0 commit comments

Comments
 (0)