try-to-tape

1.2.6 • Public • Published

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();
});

Related

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.6
    43
    • latest

Version History

Package Sidebar

Install

npm i try-to-tape

Weekly Downloads

81

Version

1.2.6

License

MIT

Unpacked Size

5.49 kB

Total Files

5

Last publish

Collaborators

  • coderaiser