try-to-tape

wrap tape async functions and show error on reject

MIT 9 个版本
安装
npm install try-to-tape
yarn add try-to-tape
pnpm add try-to-tape
bun add try-to-tape
README

Try to Tape NPM version Dependency Status Build Status Coverage Status

Wrap tape async functions and show error on reject.

Install

npm i try-to-tape

Example

const tryToTape = require('try-to-tape');
const tape = tryToTape(require('tape'));

test('lib: arguments', async (t) => {
    throw Error('hello');
    // will call t.fail with an error
    // will call t.end
    
    t.end();
});

License

MIT

版本列表
1.2.6 2020-02-25
1.2.5 2019-10-16
1.2.4 2019-09-19
1.2.3 2019-01-13
1.2.2 2019-01-13
1.2.1 2019-01-13
1.2.0 2019-01-08
1.1.0 2018-11-23
1.0.0 2018-11-08