added "npm run test-debug" that makes it possible to attach the Gitpod debugger to the automated tests

This commit is contained in:
ArnoldSmith86 2021-04-03 21:52:15 +00:00
parent 92d977fa40
commit 630c846f72
3 changed files with 10 additions and 0 deletions

View File

@ -8,3 +8,6 @@ ports:
- port: 9229
visibility: private
onOpen: ignore
- port: 9239
visibility: private
onOpen: ignore

View File

@ -6,6 +6,12 @@
"request": "attach",
"name": "Attach",
"port": 9229
},
{
"type": "node",
"request": "attach",
"name": "Attach Test",
"port": 9239
}
]
}

View File

@ -10,6 +10,7 @@
"debug": "cross-env NOCOMPRESS=1 nodemon -e js,mjs,css,html --ignore save --ignore coverage --ignore tests --inspect server.mjs",
"start": "node server.mjs",
"test": "node --experimental-vm-modules node_modules/.bin/jest --coverage",
"test-debug": "node --experimental-vm-modules --inspect-brk=9239 node_modules/.bin/jest",
"test-cont": "nodemon -e js,mjs,css,html --ignore save --ignore coverage --experimental-vm-modules node_modules/.bin/jest"
},
"repository": {