File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 },
You can’t perform that action at this time.
0 commit comments