tap-wrap

wrap a stdout-emitting headless runner like slimer in a utility that exits when proper

Usage no npm install needed!

<script type="module">
  import tapWrap from 'https://cdn.skypack.dev/tap-wrap';
</script>

README

tap-wrap

Test runners like SlimerJS don't automatically exit when tests are finished, and they don't output useful return values. This module wraps Slimer and any other runner that runs TAP tests, kills the subprocess when tests are done, and exits with an informative error code.

usage

$ tap-wrap slimerjs tests.js

Or in package.json:

"test": "tap-wrap slimerjs tests.js"

install

npm install --save-dev tap-wrap