forked from TimothyRHuertas/normalizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
50 lines (39 loc) · 927 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
42
43
44
45
46
47
48
49
50
'use strict';
module.exports = function(karma) {
var configuration = {
frameworks: ['mocha', 'chai', 'browserify' ],
files: [
'test/**/*Spec.js'
],
reporters: ['progress'],
browserNoActivityTimeout: 100000,
preprocessors: {
'test/**/*Spec.js': ['browserify']
},
client: {
mocha: {
reporter: 'html' // change Karma's debug.html to the mocha web reporter
,ui: 'bdd'
}
},
browsers: [ 'Chrome', 'ChromeCanary' ],
customLaunchers: {
Chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
logLevel: 'LOG_DEBUG',
singleRun: false,
autoWatch: true,
// browserify configuration
browserify: {
debug: true,
transform: [ 'babelify', 'hintify' ]
}
};
if(process.env.TRAVIS){
configuration.browsers = ['Chrome_travis_ci'];
}
karma.set(configuration);
};