Skip to content

testdouble/teenytest-promise

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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 -D 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.

About

Promise support for asynchronous teenytest tests

Resources

Stars

Watchers

Forks

Packages

No packages published