@frenz/ducktape
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@frenz/ducktape

naive wrapper of tape to add support for promises (and automatically ending your test).

Usage

import ducktape from 'ducktape'

const sleep = n => new Promise(resolve => setTimeout(resolve))
const error = new Promise(reject => reject(new Error('will error')));

ducktape('description', async t => {
    t.ok(true, 'this is tape')

    await sleep(1)

    t.ok(true, 'this waited')

    await error
})

LICENSE

ISC

/@frenz/ducktape/

    Package Sidebar

    Install

    npm i @frenz/ducktape

    Weekly Downloads

    0

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    9.69 kB

    Total Files

    8

    Last publish

    Collaborators

    • aliem