A simple plugin to load the Esquire library and run Mocha.
Install with NPM:
npm install --save-dev grunt-esquire
Then just add the esquire-mocha
task to your GruntFile.js
.
'esquire-mocha': {
'options': { slow: 500 },
'default': {
src: [ 'index.js',
'test/*.js' ]
}
},
Basically, this little plugin for Grunt will load all the source files,
and wait for any static injection (specified via the global.esqire(...)
call)
before running Mocha.
[Apache License, Version 2.0](Apache License)