teenytest-promise

1.0.0 • Public • Published

teenytest-promise

This is a teenytest plugin that allows you to return a promise from any test hook or function, and the plugin will wait until the promise is fulfilled or rejected before continuing, reporting the success or failure to teenytest itself.

Setup

$ npm i -S teenytest-promise

Then add this to your package.json:

"teenytest"{
  "plugins": [
    "teenytest-promise"
  ]
}

You can also specify the plugin with teenytest's command line:

$ teenytest --plugin teenytest-promise "**/*-test.js"

Which should work fine when run in any directory where require('teenytest-promise') will resolve without error.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    38
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    38

Package Sidebar

Install

npm i teenytest-promise

Weekly Downloads

38

Version

1.0.0

License

GPL-3.0

Last publish

Collaborators

  • dustin.tinney
  • mike.testdouble
  • searls