add debug tests

This commit is contained in:
Simon Larsen 2022-05-02 22:35:59 +01:00
parent 81633d930f
commit f37cb3ac2b
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
2 changed files with 14 additions and 1 deletions

12
.vscode/launch.json vendored
View File

@ -141,6 +141,18 @@
"<node_internals>/**"
],
"type": "pwa-node"
},
{
"name": "CommonServer: Debug Tests",
"type": "node",
"request": "launch",
"cwd": "${workspaceRoot}/CommonServer",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run-script",
"debug:test"
],
"port": 9229
}
]
}

View File

@ -5,7 +5,8 @@
"main": "index.ts",
"scripts": {
"compile": "tsc",
"test": "jest ./Tests"
"test": "jest ./Tests",
"debug:test": "node --inspect node_modules/.bin/jest --runInBand ./Tests"
},
"author": "",
"license": "MIT",