Skip to content

Commit 8f463b5

Browse files
Added ability to debug mocha tests
1 parent 3befbcf commit 8f463b5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

api/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"start": "node index.js",
88
"test": "npm run-script test-lint && npm run-script test-unit",
99
"test-lint": "npx eslint --ext .js ./",
10-
"test-unit": "npx mocha test/ --require test/_mocha_clifix.js"
10+
"test-unit": "npx mocha --inspect=0.0.0.0 test/ --require test/_mocha_clifix.js"
1111
},
1212
"author": "",
1313
"license": "MIT",

docker-compose.test.yml

+4
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ services:
6868
tty: true
6969
networks:
7070
- test
71+
ports:
72+
- '8000:8000'
73+
- '9229:9229'
74+
7175

7276
networks:
7377
test:

0 commit comments

Comments
 (0)