@simple/specserver

Simple spec server for running browser-based unit tests

Usage no npm install needed!

<script type="module">
  import simpleSpecserver from 'https://cdn.skypack.dev/@simple/specserver';
</script>

README

specserver

Configurable spec server for serving unit test files. Currently tied to mocha.

Installation

npm install --save-dev @simple/specserver

Usage

Usage: specserver --file /path/to/specsfile.js --cmd 'npm run foo'

Options:
  -p, --port  Port of the HTTP server                            [default: 7357]
  -f, --file  Path to the JavaScript spec file containing your        [required]
              unit tests
  -c, --cmd   Command to run on page load which compiles your tests   [required]
              and saves them as `file`
  -h, --help  Shows this help text