-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathkarma.conf.js
63 lines (59 loc) · 1.32 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
const customLaunchers = {
'SL_Chrome': {
base: 'SauceLabs',
browserName: 'chrome',
version: '48',
platform: 'Linux'
},
'SL_Firefox': {
base: 'SauceLabs',
browserName: 'firefox',
version: '76',
platform: 'Windows 10'
},
'SL_Edge': {
base: 'SauceLabs',
browserName: 'MicrosoftEdge',
version: '79',
platform: 'Windows 10'
},
'SL_Safari': {
base: 'SauceLabs',
browserName: 'safari',
platform: 'macOS 10.14',
version: '12.0'
}
}
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['browserify', 'mocha'],
files: ['./test/index.js'],
exclude: [],
preprocessors: { 'test/index.js': ['browserify'] },
browserify: {
debug: true,
transform: [
['babelify', {
presets: ['env'],
global: true,
ignore: /\/node_modules\/(?!chai-as-promised|bech32\/)/,
plugins: ['transform-runtime']
}]
]
},
reporters: ['mocha', 'saucelabs'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: false,
browserNoActivityTimeout: 180000,
concurrency: 5,
sauceLabs: {
testName: 'Exonum anchoring unit tests'
},
customLaunchers: customLaunchers,
browsers: Object.keys(customLaunchers),
singleRun: true
})
}