Category: karma-runner

Karma gives an error: the controller with the name … is not registered

My karma.conf.js module.exports = function(config) { config.set({ basePath: ‘./app’, files: [ ‘lib/angular/angular.js’, ‘lib/angular-route/angular-route.js’, ‘lib/angular-aria/angular-aria.js’, ‘lib/angular-animate/angular-animate.js’, ‘lib/angular-messages/angular-messages.js’, ‘lib/angular-material/angular-material.js’, ‘lib/angular-mocks/angular-mocks.js’, ‘lib/angular-material/angular-material-mocks.js’, ‘**/*.module.js’,

Continue reading