forked from spamguy/diplomacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
66 lines (63 loc) · 2.69 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
'use strict';
module.exports = function(config) {
config.set({
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', 'chai-jquery', 'jquery-2.1.0', 'chai-as-promised', 'chai'],
files: [
'karma-setup.js',
'bower_components/jquery/dist/jquery.js',
'bower_components/moment/moment.js',
'bower_components/d3/d3.js',
'bower_components/lodash/lodash.js',
'bower_components/humanize-duration/humanize-duration.js',
'bower_components/angular/angular.js',
'bower_components/angular-messages/angular-messages.js',
'bower_components/angular-sanitize/angular-sanitize.js',
'bower_components/angular-mocks/angular-mocks.js',
'bower_components/socket.io-client/socket.io.js',
'bower_components/angular-socket.io-mock/angular-socket.io-mock.js',
'bower_components/angular-ui-router/release/angular-ui-router.js',
'bower_components/angular-animate/angular-animate.js',
'bower_components/angular-local-storage/dist/angular-local-storage.js',
'bower_components/angular-timer/dist/angular-timer.js',
'bower_components/angular-jwt/dist/angular-jwt.js',
'bower_components/angular-material/angular-material.js',
'bower_components/angular-aria/angular-aria.js',
// 'bower_components/angular-socket-io/socket.js',
'bower_components/v-accordion/dist/v-accordion.js',
// Client files.
'client/temp/constants.js',
'client/app/app.module.js',
'client/app/app.controller.js',
'client/app/**/*.service.js',
'client/app/**/*.component.js',
'client/app/**/*.directive.js',
'client/app/**/*.module.js',
'client/app/**/*.filter.js',
'client/app/**/*.controller.js',
'client/app/**/*.html',
'client/app/**/*.spec.js',
// HTML files and templates.
'client/app/**/*.tmpl.html'
],
logLevel: 'INFO',
reporters: ['dots', 'coverage'],
autoWatch: false,
singleRun: true,
browsers: ['PhantomJS'],
ngHtml2JsPreprocessor: {
stripPrefix: 'client/',
moduleName: 'templates'
},
coverageReporter: {
type: 'html',
dir: 'coverage/'
}
});
};