forked from urish/angular-moment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
36 lines (32 loc) · 871 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
/* License: MIT.
* Copyright (C) 2013, 2014, Uri Shaked.
*/
'use strict';
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine'],
logLevel: config.LOG_INFO,
browsers: ['PhantomJS'],
autoWatch: true,
reporters: ['dots', 'coverage'],
files: [
'bower_components/angular/angular.js',
'bower_components/moment/moment.js',
'bower_components/moment/{locale,lang}/fr.js',
'bower_components/moment-timezone/moment-timezone.js',
'angular-moment.js',
// angular-mocks defines a global variable named 'module' which confuses moment-timezone.js.
// Therefore, it must be included after moment-timezone.js.
'bower_components/angular-mocks/angular-mocks.js',
'tests.js'
],
preprocessors: {
'angular-moment.js': 'coverage'
},
coverageReporter: {
type: 'lcov',
dir: 'coverage/'
}
});
};