forked from stellar/js-stellar-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma-sauce.conf.js
62 lines (52 loc) · 1.29 KB
/
karma-sauce.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
const webpackConfig = require("./webpack.config.browser.js");
delete webpackConfig.plugins;
delete webpackConfig.output;
module.exports = function(config) {
var customLaunchers = {
sl_chrome_49: {
base: "SauceLabs",
browserName: "chrome",
version: "49",
},
sl_chrome_latest: {
base: "SauceLabs",
browserName: "chrome",
version: "latest",
},
sl_firefox_42: {
base: "SauceLabs",
browserName: "firefox",
version: "42",
},
sl_firefox_latest: {
base: "SauceLabs",
browserName: "firefox",
version: "latest",
},
sl_edge_17: {
base: "SauceLabs",
browserName: "microsoftedge",
version: "17",
},
};
config.set({
sauceLabs: {
testName: "js-stellar-sdk",
recordScreenshots: false,
recordVideo: false,
},
frameworks: ["mocha", "chai-as-promised", "chai", "sinon", "commonjs"],
customLaunchers: customLaunchers,
browsers: Object.keys(customLaunchers),
files: ["dist/stellar-sdk.js", "test/test-browser.js", "test/unit/**/*.js"],
preprocessors: {
"test/**/*.js": ["webpack", "commonjs"],
},
webpack: webpackConfig,
webpackMiddleware: {
noInfo: true,
},
singleRun: true,
reporters: ["dots", "saucelabs"],
});
};