forked from panva/jose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
107 lines (103 loc) · 2.12 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
const reporters = ["summary"];
if (!('CI' in process.env)) {
reporters.push("progress");
}
const browsers = {
chrome_latest: {
base: "BrowserStack",
browser: "chrome",
os: "Windows",
os_version: "11",
},
chrome_lowest: {
base: "BrowserStack",
browser: "chrome",
os: "Windows",
browser_version: "63.0",
os_version: "11",
},
firefox_latest: {
base: "BrowserStack",
browser: "firefox",
os: "Windows",
os_version: "11",
},
firefox_lowest: {
base: "BrowserStack",
browser: "firefox",
os: "Windows",
browser_version: "57.0",
os_version: "11",
},
edge_latest: {
base: "BrowserStack",
browser: "edge",
os: "Windows",
os_version: "11",
},
edge_lowest: {
base: "BrowserStack",
browser: "edge",
os: "Windows",
browser_version: "80.0",
os_version: "11",
},
safari_latest: {
base: "BrowserStack",
browser: "safari",
os: "OS X",
os_version: "Monterey",
},
safari_lowest: {
base: "BrowserStack",
browser: "safari",
os: "OS X",
os_version: "High Sierra",
},
};
// TODO: 15, but it doesn't get secureContext anymore >,<
for (const ios of [12, 13, 14]) {
browsers[`ios_${ios}`] = {
base: "BrowserStack",
device: "iPhone XS",
os: "ios",
os_version: `${ios}`,
}
}
module.exports = function (config) {
config.set({
basePath: "",
hostname: "127.0.0.1",
frameworks: ["qunit"],
plugins: [
"karma-qunit",
"karma-browserstack-launcher",
"karma-summary-reporter",
],
files: ["dist-browser-tests/*.js"],
reporters,
port: 9876,
autoWatch: false,
browserStack: {
username: process.env.BROWSERSTACK_USERNAME,
accessKey: process.env.BROWSERSTACK_ACCESS_KEY,
},
customLaunchers: browsers,
logLevel: config.LOG_WARN,
client: {
qunit: {
showUI: true,
testTimeout: 5000,
hidepassed: true
},
},
browsers: Object.keys(browsers),
singleRun: true,
retryLimit: 0,
summaryReporter: {
show: 'all',
overviewColumn: true,
browserList: 'always'
}
});
};