grunt-simple-mocha
Version:
A simple wrapper for running tests with Mocha.
24 lines (21 loc) • 526 B
JavaScript
module.exports = function(grunt) {
grunt.initConfig({
simplemocha: {
all: {
src: ['test/**/*.js'],
options: {
globals: ['should'],
timeout: 3000,
ignoreLeaks: false,
grep: '*-test',
ui: 'bdd',
reporter: 'tap'
}
}
}
});
// For this to work, you need to have run `npm install grunt-simple-mocha`
grunt.loadNpmTasks('grunt-simple-mocha');
// Add a default task.
grunt.registerTask('default', 'simplemocha');
};