Skip to content

Commit 9136473

Browse files
committed
debug
1 parent 0c6a59d commit 9136473

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

docker-compose.test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ services:
1616
extra_hosts:
1717
- "deadbeef.vpn:127.0.0.1"
1818
environment:
19-
- NODE_DEBUG=nock:*
2019
- PRODUCTION_MODE=false
2120
- API_HOST=api.balena.test
2221
- VPN_PORT=443
@@ -60,7 +59,7 @@ services:
6059
sleep 10
6160
docker exec "$${CONTAINER_NAME}" npm install
6261
docker exec "$${CONTAINER_NAME}" npm run test-unit
63-
docker exec "$${CONTAINER_NAME}" npx mocha test/app.ts
62+
docker exec "$${CONTAINER_NAME}" NODE_DEBUG=nock:* mocha test/app.ts
6463
# Test the learn-address script directly
6564
docker exec "$${CONTAINER_NAME}" env LEARN_ADDRESS_DEBUG=true /usr/src/app/openvpn/scripts/learn-address.sh 10mbit 5mbit add 10.0.0.100 test-client debug lo
6665
# Check if log file was created and show its contents

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"lint": "balena-lint -t ./tsconfig.dev.json src/ test/ typings/",
1313
"lint-fix": "balena-lint -t ./tsconfig.dev.json --fix src/ test/ typings/",
1414
"test": "npm run lint",
15-
"test-unit": "mocha test/index.ts",
15+
"test-unit": "NODE_DEBUG=nock:* mocha test/index.ts",
1616
"test-compose": "docker build . -t sut && docker compose -f docker-compose.test.yml run sut",
1717
"prepare": "node -e \"try { (await import('husky')).default() } catch (e) { if (e.code !== 'ERR_MODULE_NOT_FOUND') throw e }\" --input-type module"
1818
},

0 commit comments

Comments
 (0)