I've been working on developing an AngularJS application using Yeoman. Everything was going smoothly until I decided to implement some unit tests. Whenever I try to run my unit tests using grunt, I keep encountering the following error:
Warning: Task "karma" not found. Use --force to continue.
Aborted due to warnings.
I'm at a loss for what to do next. I followed the tutorial on the Yeoman website:
Here is my Gruntfile.js:
// Code generated on 2016-04-06 using generator-angular 0.11.1
'use strict';
// Configuration for various tasks...
grunt.registerTask('serve', 'Compile then start a connect web server', function (target) {
// Implementation of serve task...
});
grunt.registerTask('test', [
// Implementation of test task...
]);
grunt.registerTask('build', [
// Implementation of build task...
]);
grunt.registerTask('default', [
// Default task...
});
karma.conf.js:
// Karma configuration
// Generated on 2016-04-06
module.exports = function(config) {
// Configuration setup for karma...
};
Any assistance or guidance would be greatly appreciated.