forked from swimlane/angular-data-table
-
Notifications
You must be signed in to change notification settings - Fork 1
/
karma.conf.js
39 lines (38 loc) · 857 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
module.exports = function (config) {
var configuration = {
basePath: './src',
browsers: ['Chrome'],
frameworks: ['angular', 'mocha', 'sinon-chai', 'browserify', 'phantomjs-shim'],
reporters: ['mocha'],
angular: ['mocks'],
files: [
{ pattern: './**/*.spec.js', watched: false }
],
preprocessors: {
'./**/*.js': ['browserify']
},
browserify: {
debug: true,
transform: [
['babelify', { stage: 0 }]
]
},
customLaunchers: {
ChromeTravis: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
client: {
mocha: {
timeout: 20000
}
},
browserDisconnectTimeout: 20000
};
if(process.env.TRAVIS){
configuration.browsers = ['ChromeTravis'];
configuration.reporters = ['dots'];
}
config.set(configuration);
};