-
Notifications
You must be signed in to change notification settings - Fork 15
/
karma.conf.js
42 lines (38 loc) · 1.32 KB
/
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
/* Karma Config
First, install (in the root of the project):
npm install -g karma-cli
Note: If this fails on Linux with a node-gyp error, you may need to install the build-essential package
To start use `karma start`
*/
module.exports = function(config) {
config.set({
frameworks: ['jasmine'],
files: [
'www/lib/ionic/js/ionic.bundle.js',
'node_modules/ng-describe/dist/ng-describe.js',
'www/lib/ngCordova/dist/ng-cordova-mocks.js',
'www/lib/ngCordova/dist/ng-cordova.min.js',
'www/lib/underscore/underscore-min.js',
'www/lib/moment/moment.min.js',
'www/lib/angular-cache/angular-cache.min.js',
'www/lib/leaflet/leaflet.js',
'www/lib/leaflet/plugins/Polyline.encoded.js',
'www/lib/leaflet/plugins/Marker.Rotate.js',
'www/lib/angular-timer/angular-timer.min.js',
'www/lib/angular-timer/humanize-duration.js',
'www/lib/angular-leaflet-directive/dist/angular-leaflet-directive.min.js',
'www/lib/angular-inview/angular-inview.js',
'node_modules/angular-mocks/angular-mocks.js',
'www/lib/lokijs/src/lokijs.js',
'www/lib/lokijs/src/loki-angular.js',
'js/*.js'
],
port: 9876,
browsers: ['Chrome'],
singleRun: true,
reporters: ['progress', 'coverage'],
preprocessors: {
'js/*.js': ['coverage']
}
});
};