forked from open-wc/open-wc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.bs.conf.js
56 lines (49 loc) · 1.46 KB
/
karma.bs.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
/* eslint-disable import/no-extraneous-dependencies */
const merge = require('deepmerge');
const { bsSettings } = require('./packages/testing-karma-bs');
const createBaseConfig = require('./karma.conf.js');
const overwriteMerge = (destinationArray, sourceArray) => sourceArray;
module.exports = config => {
config.set(
merge.all(
[
bsSettings(config),
createBaseConfig(config),
{
browserStack: {
project: 'open-wc',
},
client: {
mocha: {
timeout: 20000,
},
},
// How long does Karma wait for a browser to reconnect
browserDisconnectTimeout: 60000,
// How long will Karma wait for a message from a browser before disconnecting from it
browserNoActivityTimeout: 60000,
// The number of disconnections tolerated
browserDisconnectTolerance: 3,
browsers: [
'bs_win10_chrome_latest',
'bs_win10_firefox_72',
'bs_win10_edge_latest',
'bs_osxmojave_safari_latest',
'bs_win10_ie_11',
],
customLaunchers: {
bs_win10_firefox_72: {
base: 'BrowserStack',
browser: 'Firefox',
browser_version: '72',
os: 'Windows',
os_version: '10',
},
},
},
],
{ arrayMerge: overwriteMerge },
),
);
return config;
};