Skip to content

Commit

Permalink
Add UTs debugging configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
  • Loading branch information
jerome-benoit committed Oct 29, 2022
1 parent 21ded0d commit 3e985d1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,20 @@
"runtimeArgs": ["run-script", "start:dev:debug"],
"skipFiles": ["<node_internals>/**"],
"stopOnEntry": true
},
{
"name": "Debug Simulator Unit Tests",
"type": "node",
"request": "attach",
"port": 9229,
"continueOnAttach": true,
"autoAttachChildProcesses": false,
"timeout": 30000,
"resolveSourceMapLocations": [
"!**/node_modules/**",
"!**/.vscode/extensions/hbenl.vscode-mocha-test-adapter-*/**"
],
"skipFiles": ["<node_internals>/**"]
}
]
}
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"source.fixAll": true
},
"testExplorer.useNativeTesting": true,
"mochaExplorer.files": ["test/**/*Test.ts"]
"mochaExplorer.files": ["test/**/*Test.ts"],
"mochaExplorer.debuggerConfig": "Debug Simulator Unit Tests"
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"lint:fix": "cross-env TIMING=1 eslint --cache --fix --ext .js,.ts src",
"format": "prettier --write .",
"test": "c8 mocha test/**/*Test.ts",
"test:debug": "mocha --no-parallel --inspect test/**/*Test.ts",
"coverage": "c8 report --reporter=lcov",
"coverage:html": "c8 report --reporter=html",
"clinic:clean": "clinic clean",
Expand Down

0 comments on commit 3e985d1

Please sign in to comment.