-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkarma.conf.js
executable file
·43 lines (40 loc) · 1.05 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
'use strict';
module.exports = function(karma) {
karma.set({
basePath: './',
frameworks: ['browserify','mocha','chai'],
plugins : ['karma-browserify','karma-mocha','karma-chai','karma-phantomjs-launcher','karma-spec-reporter','karma-coverage'],
files: [
'app/**/*.js',
'test/**/*.spec.js',
],
exclude: ['node_modules','coverage'],
preprocessors: {
'app/**/*.js': [ 'browserify'],
'test/**/*.spec.js': [ 'browserify']
},
browserify: {
debug: true,
extensions: ['.js'],
transform: [ 'brfs','browserify-shim'],
configure: function(bundle) {
bundle.on('prebundle', function() {
bundle.external('build/build.js');
});
}
},
reporters: ['spec','coverage'],
specReporter: {
maxLogLines: 5,
suppressErrorSummary: true,
suppressFailed: false,
suppressPassed: false,
suppressSkipped: true
},
port: 9876,
colors: true,
logLevel: karma.LOG_INFO,
autoWatch: false,
browsers: ['PhantomJS'],
});
};