wait-port

v1.1.0
Utility to wait for a TCP port to open.

lint

eslint .

test

DEBUG=wait-port nyc --report-dir 'artifacts/coverage' -x 'lib/**/*.spec.js' --reporter=html --reporter=text mocha --recursive -t 10000 'lib/**/*.spec.js'

test:ci

DEBUG=wait-port nyc --report-dir 'artifacts/coverage' -x 'lib/**/*.spec.js' --reporter=html --reporter=text mocha --recursive -t 10000 'lib/**/*.spec.js' --reporter mocha-junit-reporter --reporter-options mochaFile=./artifacts/test-reports/test-results.xml

test:debug

DEBUG=wait-port mocha --inspect --inspect-brk -t 10000 'lib/**/*.spec.js'

test:watch

DEBUG=wait-port mocha --watch --recursive -t 10000 'lib/**/*.spec.js'

report-coverage

nyc report --reporter=text-lcov > ./artifacts/coverage/coverage.lcov && codecov

debug

DEBUG=wait-port mocha --recursive --inspect --debug-brk 'lib/**/*.spec.js'
npm i wait-port

Metadata

  • MIT
  • >=10
  • Dave Kerr
  • released 9/20/2023

Downloads

Maintainers