forked from vitorabner/decoraki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
55 lines (43 loc) · 1.2 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
module.exports = function(config) {
var configuration = {
client: {
captureConsole: false
},
plugins: [
'karma-chai',
'karma-sinon',
'karma-mocha',
'karma-chrome-launcher'
],
frameworks: ['mocha', 'sinon', 'chai'],
files: [
//- lib
"lib/three.js/build/three.js",
"lib/colladaLoader/index.js",
"lib/isMobile/isMobile.min.js",
"lib/detector/index.js",
//- app
"src/javascript/helpers/*.js",
"src/javascript/control/*.js",
"src/javascript/models/*.js",
"src/javascript/scene/*.js",
"src/javascript/simulator/*.js",
//- test
'test/utils/**/*.js',
'test/unit/**/*.js'
],
reporters: ['progress'],
browsers: ['Chrome'],
customLaunchers: {
chromeTravis: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
singleRun: true
}
if(process.env.TRAVIS){
configuration.browsers = ['chromeTravis'];
}
config.set(configuration);
};