-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
/
karma.conf.js
39 lines (37 loc) · 959 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 targets = {
'ChromeHeadless': ['ChromeHeadless']
};
var browsers = targets[process.env.TARGET || 'ChromeHeadless'];
if (process.env.BROWSERS) {
browsers = process.env.BROWSERS.split(',');
}
config.set({
frameworks: ['mocha', 'chai'],
files: [
'dist/css/selectize.default.css',
'node_modules/jquery/dist/jquery.js',
'test/support/*.js',
'src/contrib/*.js',
'src/utils.js',
'src/constants.js',
'src/selectize.js',
'src/defaults.js',
'src/selectize.jquery.js',
'test/*.js'
],
preprocessors: {
'src/*.js': ['coverage']
},
reporters: ['progress', 'coverage'],
port: 8888,
colors: true,
captureTimeout: 0,
logLevel: config.LOG_INFO,
browsers: browsers,
browserDisconnectTolerance: 2,
browserDisconnectTimeout: 10000,
browserNoActivityTimeout: 120000,
singleRun: true
});
};