0.0.2 • Published 4 years ago

nyc-server v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

nyc-server

Simple nyc server for running applications or test unit suites.

Usage

  1. install
npm i nyc-server@0.0.2 -E
npm i nyc@15.0.1 -E
  1. script
  "test": "nyc --require nyc-server node index.js"

The server will run by default on port 3005 and the front-end will point to localhost:3005. If your app is running behind nginx you may want to override this with the variables NYC_SERVER_PORT & NYC_SERVER_WS_ENDPOINT. This implementation is too simple, so if you catch some error enable logs by NYC_SERVER_LOGS=true.

Issues

If any, please issue it.