Skip to content

Commit

Permalink
Merge pull request #620 from NoelDeMartin/vscode
Browse files Browse the repository at this point in the history
Add vscode configuration to launch tests
  • Loading branch information
angelo-v authored Jul 12, 2023
2 parents c5bcd95 + 28b8ec8 commit 308322b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ dist
doc
parsers/*.js
node_modules
.vscode/
npm-debug.log
dist/rdflib.min.js
lib/
Expand Down
31 changes: 31 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Unit Test Current File",
"program": "${workspaceFolder}/node_modules/.bin/mocha",
"args": [
"--require",
"./tests/babel-register.js",
"${fileDirname}/${fileBasename}",
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
},
{
"type": "node",
"request": "launch",
"name": "Unit Test All Files",
"program": "${workspaceFolder}/node_modules/.bin/mocha",
"args": [
"--require",
"./tests/babel-register.js",
"tests/unit/**-test.*",
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
}
]
}

0 comments on commit 308322b

Please sign in to comment.