Skip to content
An example of how to set up Mocha with Require.js and run it through Node.js

Mocha Bootstrap


Mocha Bootstrap demonstrates how to create Mocha tests with Require.js and Node.js. There was precious little documentation on how to get this done, so I figured out how to do it through sheer will and determination.


Install mocha-bootstrap git clone git:// mocha-bootstrap

Install dependencies

$ cd mocha-bootstrap
$ npm install

Run browser version: localhost/mocha-bootstrap/index.html

Run node version:

$ node node_runner


This package may be used without restriction, and is released under the same licensing as Dojo, where applicable.

Something went wrong with that request. Please try again.