JavaScript testing framework based on Mocha, Chai and Sinon with React support

Install Getting Started

Easy module mocking

Mock functions make it easy to test modules in isolation. Mokamok also supports automocking of external modules.

The full power of Mocha

Mokamok is based on Mocha and automatically injects Chai, Sinon and sinon-chai.

React support

Mokamok supports React projects with a simple API for full DOM and shallow rendering.

Babel support

Mokamok supports ES next features out of the box with full Babel integration.

Watch mode

Watch mode makes it easy for developers to see the effects of code changes immediately.

Coverage reports

Mokamok generates full code coverage report without any complicated configuration.