-
Notifications
You must be signed in to change notification settings - Fork 18
/
karma.conf.sauce.js
122 lines (121 loc) · 2.65 KB
/
karma.conf.sauce.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
module.exports = function (config) {
const { babel } = require('@rollup/plugin-babel');
const commonjs = require('@rollup/plugin-commonjs');
const { nodeResolve } = require('@rollup/plugin-node-resolve');
config.set({
files: [
'node_modules/sinon/pkg/sinon.js',
'test/unit/tap-reporter.js',
'test/unit/helpers.js'
],
preprocessors: {
'test/unit/**.js': ['rollup']
},
rollupPreprocessor: {
external: ['sinon'],
output: {
globals: {
sinon: 'sinon'
},
format: 'iife',
name: 'JsReporters_Test',
sourcemap: true
},
// See rollup.config.js
plugins: [
nodeResolve({
preferBuiltins: false
}),
commonjs({
requireReturnsDefault: 'preferred'
}),
babel({
babelHelpers: 'bundled',
babelrc: false,
presets: [
['@babel/preset-env', {
targets: {
ie: 9
}
}]
]
})
]
},
frameworks: ['qunit'],
sauceLabs: {
username: process.env.SAUCE_USERNAME,
accessKey: process.env.SAUCE_ACCESS_KEY,
region: process.env.SAUCE_REGION || 'us'
},
customLaunchers: {
firefox78: {
base: 'SauceLabs',
browserName: 'firefox',
version: '78.0'
},
ie9: {
base: 'SauceLabs',
browserName: 'internet explorer',
version: '9'
},
ie10: {
base: 'SauceLabs',
browserName: 'internet explorer',
version: '10'
},
ie11: {
base: 'SauceLabs',
browserName: 'internet explorer',
version: '11'
},
safari9: {
base: 'SauceLabs',
browserName: 'safari',
version: '9'
},
safari10: {
base: 'SauceLabs',
browserName: 'safari',
version: '10'
},
safari: {
base: 'SauceLabs',
browserName: 'safari'
},
edge15: {
// Edge 40 (EdgeHTML 15)
base: 'SauceLabs',
browserName: 'MicrosoftEdge',
version: '15.15063'
},
edge: {
// Edge 80+ (Chromium)
base: 'SauceLabs',
browserName: 'MicrosoftEdge',
version: 'latest'
},
chrome80: {
base: 'SauceLabs',
browserName: 'chrome',
version: '80.0'
}
},
concurrency: 4,
browsers: [
'firefox78',
'ie9',
'ie10',
'ie11',
'safari9',
'safari10',
'safari',
'edge15',
'edge',
'chrome80'
],
logLevel: 'WARN',
singleRun: true,
autoWatch: false
});
};