Skip to content

Instantly share code, notes, and snippets.

@Siedrix
Created November 21, 2013 01:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Siedrix/7574405 to your computer and use it in GitHub Desktop.
Save Siedrix/7574405 to your computer and use it in GitHub Desktop.
Grunt configuration for automated testing.
module.exports = function(grunt) {
grunt.initConfig({
watch: {
scripts: {
files: ['test/*.js', 'lib/*.js'],
tasks: ['mochaTest'],
options: {
spawn: true,
}
}
},
mochaTest: {
test: {
options: {
reporter: 'spec'
},
src: ['test/*.js']
}
}
});
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment