mocha-chai-helper
Version:
Require this in mocha to add expect, sinon, chai-things, chai-as-promised and sinon-chai to global namespace
12 lines (9 loc) • 997 B
Markdown
# mocha-chai-helper
[](https://npmjs.org/package/mocha-chai-helper)
[](https://david-dm.org/dbartholomae/mocha-chai-helper)
[](https://david-dm.org/dbartholomae/mocha-chai-helper#info=devDependencies)
[]()
**mocha-chai-helper** is a small helper utility for usage with mocha. It can be required in [mocha]() to add [`expect`](http://chaijs.com/api/bdd/) and [`sinon`](http://sinonjs.org/) to the global namespace, while also including [chai-things](https://github.com/chaijs/chai-things), [chai-as-promised](https://github.com/domenic/chai-as-promised) and [sinon-chai](https://github.com/domenic/sinon-chai).
```bash
mocha --require mocha-chai-helper src/*.spec.js
```