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