Using Karma and Jasmine for unit testing on the angular interface of the rails application. It seems that I did everything that was known to a person to get through this error, and I still have a million dependencies in my package. Json Here is my Karma.conf.js:
module.exports = function(config) {
config.set({
basePath: '',
files: [
'bower_components/angular/angular.js',
'bower_components/angular-mocs/angular-mocks.js',
'bower_components/angular-resource/angular-resource.js',
'public/app/app.js',
'app/**/*.js',
'spec/**/*.js',
'public/**/*.js'
],
exclude: [
],
preprocessors: {
},
reporters: ['progress'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome', 'Firefox'],
singleRun: false,
concurrency: Infinity,
plugins : [
'karma-requirejs',
'karma-jasmine',
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-browserify'
],
frameworks: ['jasmine', 'browserify']
})
}
Is there something obvious I'm doing wrong here? I hope there are, it seems like I halfway implemented a couple of solutions here, not knowing what was going on. Thank!
I get an error in the app.js file in the first line asking
source
share