tape-async
A lite wrapper around tape to simplify async testing.
Installation
npm install -D tape-async
Usage
async-await
Use with const test = ; const sleep = ; ;
tape-async
supports future ES async-await syntax.
You are in charge to provide traspilation of your test code.
generators
Use with const test = ; const sleep = ; ;
tape-async
supports generators test to handle async code.
They run using co.
It catch unhandled errors
const test = ; ;
Unhandled errors in your tests are automatically covered. Test suite fails with a generic error message and a stack trace.
Promise
rejections
It catch unhandled const test = ; ;
Uncatched Promise rejection in your tests are automatically covered. Test suite fails with a generic error message and a stack trace.
tape features.
It support every const test = ; test; test;
Since this is only a tiny wrapper around tape
, you can
use every feature you are used to.
Related projects
- tape - tap-producing test harness for node and browsers.
License
The MIT License (MIT)
Copyright (c) 2016 Andrea Parodi