-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
43 lines (34 loc) · 868 Bytes
/
karma.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
'use strict';
module.exports = function(karma) {
karma.set({
files: [
'node_modules/angular/angular.js',
'node_modules/angular-mocks/angular-mocks.js',
'app/app.js',
'app/controllers/**/*.js',
'app/directives/**/*.js',
'app/services/**/*.js',
'app/tests/**/*.js'
],
frameworks: [ 'jasmine', 'browserify'],
plugins: ["karma-browserify",
"karma-jasmine",
"karma-chrome-launcher",
"karma-phantomjs-launcher",
"karma-requirejs",
"karma-spec-reporter"],
reporters: [ 'spec' ],
preprocessors: {
'app/app.js': [ 'browserify' ],
'app/tests/**/*.js': [ 'browserify' ]
},
browsers: [ 'PhantomJS' ], // PhantomJS, Chrome
//logLevel: 'LOG_DEBUG',
singleRun: false,
autoWatch: true,
// browserify configuration
browserify: {
debug: true
}
});
};