forked from vaadin/router
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wct.conf.cjs
75 lines (65 loc) · 2.11 KB
/
wct.conf.cjs
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
71
72
73
74
75
var argv = require('yargs').argv;
module.exports = {
registerHooks: function(context) {
if (argv.env === 'saucelabs') {
// The list below is based on the browserslist config defined in package.json
context.options.plugins.sauce.browsers = [
// last 2 Chrome major versions (desktop)
'Windows 10/chrome@latest',
'Windows 10/chrome@latest-1',
// last 2 Android major versions (mobile Chrome)
{
deviceName: 'Android GoogleAPI Emulator',
platformName: 'Android',
platformVersion: '11.0',
browserName: 'chrome',
browserVersion: 'latest'
},
{
deviceName: 'Android GoogleAPI Emulator',
platformName: 'Android',
platformVersion: '10.0',
browserName: 'chrome',
browserVersion: 'latest-1'
},
// last 2 Firefox major versions (desktop)
'Windows 10/firefox@latest',
'Windows 10/firefox@latest-1',
// last Firefox ESR version (desktop)
// SauceLabs doesn't have ESR versions so testing
// the regular release of the same major version here
'Windows 10/firefox@78.0',
// last 2 Edge major versions (desktop)
'Windows 10/microsoftedge@latest',
'Windows 10/microsoftedge@latest-1',
// last 2 Safari major versions (desktop)
'macOS 11.00/safari@latest',
'macOS 10.15/safari@latest',
// last 2 iOS major versions (mobile Safari)
'iOS Simulator/iphone@latest',
'iOS Simulator/iphone@latest-1',
];
}
if (argv.profile === 'coverage') {
context.options.suites = [
'test/index.coverage.html'
];
context.options.plugins.local.browsers = ['chrome'];
context.options.plugins.istanbul = {
dir: './coverage',
reporters: ['text-summary', 'lcov'],
include: [
'**/dist/test-iife/**/*.js',
],
thresholds: {
global: {
statements: 80,
branches: 80,
functions: 80,
lines: 80,
}
}
};
}
}
};