ReferenceError: Cannot find variable: ApplicationConfiguration

I get ReferenceError: I can not find the variable: ApplicationConfiguration in application.js when I run 'npm test' or 'karma start' in the CLI. My karma.config.js for reference:

module.exports = function(config) { config.set({ frameworks: ['jasmine'], files: [ 'public/lib/angular/angular.js', 'public/lib/angular-*/angular-*.js', 'public/lib/angular-mocks/angular-mocks.js', 'public/lib/jquery/dist/jquery.js', 'public/lib/angular-ui-router/release/angular-ui-router.js', 'public/lib/angular-resource/angular-resource.js', 'public/**/*.js', 'public/modules/core/tests/unit/*.js' ], exclude: [ ], preprocessors: { }, reporters: ['progress'], port: 9876, colors: true, logLevel: config.LOG_INFO, autoWatch: true, browsers: ['PhantomJS'], singleRun: false }) } 

Please help me....

+6
source share
1 answer

My problem is resolved. You need to give the correct sequence of files in karma.conf.js instead of publishing / ** / *. Js in general The correct sequence of files added to the karma.config.js file when the ur project is built meanjs yo:

. jquery, angular, angular-mocks, router, config.js, application.js, client.module.js, co ntoller.js, test.js should be the correct sequence.

+2
source

All Articles