https://github.com/testdouble/teenytest-promise
Promise support for asynchronous teenytest tests
https://github.com/testdouble/teenytest-promise
Last synced: 4 months ago
JSON representation
Promise support for asynchronous teenytest tests
- Host: GitHub
- URL: https://github.com/testdouble/teenytest-promise
- Owner: testdouble
- Created: 2016-06-24T17:04:44.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2021-05-07T00:57:36.000Z (about 5 years ago)
- Last Synced: 2025-10-20T22:34:56.824Z (8 months ago)
- Language: JavaScript
- Size: 31.3 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
``` 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.