Так что я пытаюсь использовать тест бегун Кармы на моем угловом проект, но я получаю эту ошибку:
Error: [$injector:nomod] Module 'app.auth' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
У меня есть все мои файлы .js
в папке с скриптами, на которые указывает мой karma.conf.js
, но по какой-то причине я продолжаю получать эту ошибку.
Мой karma.conf.js
файл выглядит следующим образом:
module.exports = function(config) {
config.set({
basePath: '.',
frameworks: ['mocha'],
files: [
'../bower_components/angular/angular.js',
'../bower_components/jquery/dist/jquery.js',
'../bower_components/angular-mocks/angular-mocks.js',
'../scripts/app.module.js',
'../scripts/**/*.js',
'./unit/*.js'
],
reporters: ['progress'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
concurrency: Infinity
})
}
Кто-нибудь есть идея о том, что может быть причиной этой проблемы?
Любая помощь приветствуется. Заранее спасибо!