forked from adobe/alloy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.saucelabs.conf.js
53 lines (48 loc) · 1.13 KB
/
karma.saucelabs.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
const karmaSauceLauncher = require("karma-sauce-launcher");
const karmaConfig = require("./karma.conf.js");
module.exports = config => {
karmaConfig(config);
const customLaunchers = {
sl_chromeW3C: {
base: "SauceLabs",
browserName: "chrome",
browserVersion: "latest",
"sauce:options": {
tags: ["w3c-chrome"]
}
},
sl_firefoxW3C: {
base: "SauceLabs",
browserName: "firefox",
browserVersion: "latest",
"sauce:options": {
tags: ["w3c-firefox"]
}
},
sl_safariW3C: {
base: "SauceLabs",
browserName: "safari",
browserVersion: "latest",
platform: "macOS 11.00"
},
sl_ieW3C: {
base: "SauceLabs",
browserName: "internet explorer",
browserVersion: "latest",
platform: "Windows 10"
}
};
config.set({
browsers: Object.keys(customLaunchers),
customLaunchers,
plugins: [
"karma-jasmine",
"karma-coverage",
"karma-jasmine-matchers",
"karma-spec-reporter",
"karma-rollup-preprocessor",
karmaSauceLauncher
],
reporters: ["dots", "saucelabs"]
});
};