-
Notifications
You must be signed in to change notification settings - Fork 35
/
karma.conf.js
41 lines (32 loc) · 953 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
'use strict';
module.exports = function(karma) {
karma.set({
frameworks: ['mocha', 'chai', 'browserify'],
preprocessors: {
'public/angular/templates/**/*.html': ['ng-html2js'],
'public/angular/js/app.js': ['browserify']
},
files: [
'test/frontend/vendor/jquery-3.5.1.min.js',
'public/angular/js/app.js',
'public/angular/templates/**/*.html',
'node_modules/angular-mocks/angular-mocks.js',
'node_modules/socket.io-client/dist/socket.io.js',
'test/frontend/**/*.test.js'
],
reporters: ['dots'],
ngHtml2JsPreprocessor: {
stripPrefix: 'public/angular',
moduleName: 'aggie.templates'
},
browsers: ['PhantomJS'],
// Possible values: karma.LOG_DISABLE, karma.LOG_ERROR, karma.LOG_WARN,
// karma.LOG_INFO, karma.LOG_DEBUG
logLevel: karma.LOG_INFO,
singleRun: false,
autoWatch: true,
browserify: {
debug: true
}
});
};