wrapping-tape

Wrap tape tests to add setup and teardown functionality

Usage no npm install needed!

<script type="module">
  import wrappingTape from 'https://cdn.skypack.dev/wrapping-tape';
</script>

README

wrapping-tape

Wrap tape tests to add setup and teardown functionality

Example

var tape = require('wrapping-tape');

var test = tape({
  setup: function(done) {
    ... do test setup
    done();
  },
  teardown: function(done) {
    ... do test teardown
    done();
  }
});

or

var test = require('wrapping-tape')({
  setup: function(done) {
    ... do test setup
  },
  teardown: function(done) {
    ... do test teardown
  }
});
```

## Install
```
$ npm install wrapping-tape
```