forked from vaadin/router
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wct.conf.js
83 lines (71 loc) · 2.28 KB
/
wct.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
71
72
73
74
75
76
77
78
79
80
81
82
83
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: '7.1',
browserName: 'chrome',
browserVersion: 'latest'
},
{
deviceName: 'Android Emulator',
platformName: 'Android',
platformVersion: '6.0',
browserName: 'chrome',
browserVersion: 'latest-1'
},
// last 2 Firefox major versions (desktop)
'Windows 10/firefox@latest',
'Windows 10/firefox@latest-1',
// last 2 Edge major versions (desktop)
'Windows 10/microsoftedge@latest',
'Windows 10/microsoftedge@latest-1',
// last 2 Safari major versions (desktop)
'macOS 10.13/[email protected]',
'macOS 10.12/[email protected]',
// last 2 iOS major versions (mobile Safari)
'iOS Simulator/[email protected]',
'iOS Simulator/[email protected]',
// Safari 9 on desktop and mobile
'OS X 10.11/[email protected]',
// The mobile Safari 9 tests are disabled because they fail due to
// https://forums.developer.apple.com/thread/36650
// 'iOS Simulator/[email protected]',
// IE11
'Windows 7/internet explorer@11',
];
}
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',
],
exclude: [
'**/dist/test-iife/resolver/path-to-regexp.js',
],
thresholds: {
global: {
statements: 80,
branches: 80,
functions: 80,
lines: 80,
}
}
};
}
}
};