-
Notifications
You must be signed in to change notification settings - Fork 6
/
karma.conf.js
88 lines (83 loc) · 3.37 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
'use strict';
module.exports = function(config) {
config.set({
client: {
mocha: {
timeout: 6000
}
},
preprocessors: {
'karma-setup.js': ['browserify'],
'client/temp/constants.js': ['browserify'],
'client/app/**/*.spec.js': ['browserify'],
'client/app/**/*.tmpl.html': ['ng-html2js'],
'client/app/**/!(*.spec).js': ['coverage']
},
frameworks: ['browserify', 'mocha', 'jquery-2.1.0', 'sinon-chai'],
files: [
'karma-setup.js',
'client/temp/modernizr.js',
'bower_components/pluralize/pluralize.js',
'bower_components/bluebird/js/browser/bluebird.js',
'bower_components/jquery/dist/jquery.js',
'bower_components/moment/moment.js',
'bower_components/lodash/lodash.js',
'bower_components/humanize-duration/humanize-duration.js',
'bower_components/firebase/firebase-app.js',
'bower_components/firebase/firebase-messaging.js',
'bower_components/angular/angular.js',
'bower_components/angular-messages/angular-messages.js',
'bower_components/angular-mocks/angular-mocks.js',
'bower_components/restangular/dist/restangular.js',
'bower_components/angular-ui-router/release/angular-ui-router.js',
'bower_components/angular-animate/angular-animate.js',
'bower_components/ngstorage/ngStorage.js',
'bower_components/angular-timer/dist/angular-timer.js',
'bower_components/angular-material/angular-material.js',
'bower_components/angular-aria/angular-aria.js',
'bower_components/v-accordion/dist/v-accordion.js',
'bower_components/angular-hotkeys/build/hotkeys.js',
'bower_components/angular-ellipses/src/truncate.js',
// Client files.
'client/temp/constants.js',
'client/app/app.module.js',
'client/app/app.controller.js',
'client/app/**/*.directive.js',
'client/app/**/*.service.js',
'client/app/**/*.component.js',
'client/app/**/*.module.js',
'client/app/**/*.filter.js',
'client/app/**/*.controller.js',
'client/app/**/*.spec.js',
// CSS.
'client/temp/app.css',
// HTML files and templates.
'client/app/**/*.tmpl.html',
// Icons.
{ pattern: 'client/assets/icons/*.svg', watched: true, included: false, served: true }
],
logLevel: 'INFO',
reporters: ['mocha', 'coverage'],
autoWatch: false,
singleRun: true,
browsers: ['ChromeHeadless'],
ngHtml2JsPreprocessor: {
stripPrefix: 'client/',
moduleName: 'templates'
},
mochaReporter: {
output: 'minimal'
},
coverageReporter: {
type: 'html',
dir: 'coverage/'
} // ,
// httpsServerOptions: {
// key: require('fs').readFileSync('dev_certs/server/my-server.key.pem', 'utf8'),
// cert: require('fs').readFileSync('dev_certs/server/my-server.crt.pem', 'utf8')
// },
// protocol: 'https:',
// usePolling: true,
// transports: ['xhr-polling', 'jsonp-polling']
});
};