-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
48 lines (47 loc) · 1.36 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
module.exports = function (config) {
var configuration = {
// basePath: '.',
browsers: ['chrome_large'],
customLaunchers: {
chrome_large: {
base: 'Chrome',
flags: [
'--window-size=1100,600',
'--window-position=-0,0'
]
},
Chrome_Travis_CI_large_no_sandbox: {
base: 'Chrome',
flags: [
'--window-size=1100,600',
'--window-position=-0,0',
'--no-sandbox'
]
}
},
files: [
'test/temp/out.js'
],
plugins: [
'karma-chrome-launcher',
'karma-chai',
'karma-sinon',
'karma-sinon-chai',
'karma-mocha',
'karma-sourcemap-loader',
'karma-webpack',
'karma-mocha-reporter'
],
frameworks: [ 'chai', 'mocha', 'sinon', 'sinon-chai' ],
preprocessors: {
'test/**/*': ['webpack', 'sourcemap'],
'src/**/*': ['webpack', 'sourcemap']
},
reporters: [ 'progress', 'mocha' ],
singleRun: false
};
if (process.env.TRAVIS) {
configuration.browsers = ['Chrome_Travis_CI_large_no_sandbox'];
}
config.set(configuration);
};