forked from borodean/sharon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
70 lines (68 loc) · 1.52 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
module.exports = config => {
const customLaunchers = {
'SL Chrome 26': {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'Linux',
version: '26.0'
},
'SL Edge 13': {
base: 'SauceLabs',
browserName: 'MicrosoftEdge',
platform: 'Windows 10',
version: '13.10586'
},
'SL Firefox 4': {
base: 'SauceLabs',
browserName: 'firefox',
platform: 'Linux',
version: '4.0'
},
'SL Internet Explorer 9': {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 7',
version: '9.0'
},
'SL Safari 8': {
base: 'SauceLabs',
browserName: 'safari',
platform: 'OS X 10.10',
version: '8.0'
}
};
config.set({
browserify: {
debug: true,
plugin: [
'proxyquire-universal',
['browserify-wrap', {
prefix: `
window.open = function () {};
(function () {
var location = 'http://foo.share/';
var screen = { width: 1920, height: 1080 };
`,
suffix: `
})();
`
}]
]
},
files: ['test/*'],
frameworks: ['browserify', 'chai', 'mocha', 'sinon'],
preprocessors: {
'test/*': ['browserify']
},
reporters: ['dots'],
singleRun: true
});
if (!config.local) {
config.set({
browsers: Object.keys(customLaunchers),
concurrency: 1,
customLaunchers,
reporters: [...config.reporters, 'saucelabs']
});
}
};