Mocha wrapper for f-promise
f-mocha
is a companion package for f-promise
.
It provides the small wrapper which is needed to run unit tests written with mocha and f-promise.
npm install --save-dev f-mocha
Add the following lines at the top of your unit test files to enable the wrapper:
import { setup } from 'f-mocha';
// this call activates the wrapper.
setup();
Now you can write your tests as if they were all synchronous. See this unit test for an example.
MIT.