https://github.com/sage/f-mocha
Mocha wrapper for f-promise
https://github.com/sage/f-mocha
fibers mocha mocha-wrapper
Last synced: 10 months ago
JSON representation
Mocha wrapper for f-promise
- Host: GitHub
- URL: https://github.com/sage/f-mocha
- Owner: Sage
- License: mit
- Archived: true
- Created: 2016-12-03T18:32:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-04-10T13:54:40.000Z (over 6 years ago)
- Last Synced: 2025-08-27T14:07:50.122Z (12 months ago)
- Topics: fibers, mocha, mocha-wrapper
- Language: TypeScript
- Homepage:
- Size: 74.2 KB
- Stars: 1
- Watchers: 6
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# f-mocha
Mocha wrapper for f-promise
`f-mocha` is a companion package for [`f-promise`](https://github.com/Sage/f-promise).
It provides the small wrapper which is needed to run unit tests written with mocha and f-promise.
## Installation
```sh
npm install --save-dev f-mocha
```
## Usage
Just run Mocha with the following argument
```js
mocha --ui f-mocha
```
Now you can write your tests as if they were all synchronous.
See [this unit test](test/basic-test.ts) for an example.
## License
MIT.