forked from SpringRoll/SpringRoll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.bs.js
62 lines (62 loc) · 1.5 KB
/
karma.conf.bs.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
require('dotenv').config();
module.exports = function(config) {
config.set({
customLaunchers: {
bs_chrome_69: {
base: 'BrowserStack',
browser_version: '69.0',
os: 'Windows',
os_version: '7',
browser: 'chrome'
},
bs_iPad_mini_2_safari: {
base: 'BrowserStack',
device: 'iPad Mini 2',
real_mobile: false,
os_version: '8.3',
os: 'ios',
browser: 'ipad'
},
bs_ie_windows_7: {
base: 'BrowserStack',
browser: 'ie',
browser_version: '11',
os: 'Windows',
os_version: '7'
}
},
browserStack: {
username: process.env.BROWSER_STACK_USER,
accessKey: process.env.BROWSER_STACK_ACCESS_KEY,
video: false
},
frameworks: ['mocha', 'chai'],
files: [{ pattern: 'src/**/*.spec.js', watched: false }],
preprocessors: {
'src/**/*.js': ['babel'],
'src/**/*.spec.js': ['webpack']
},
babelPreprocessor: {
presets: () => [
[
'@babel/preset-env',
{
useBuiltIns: 'entry',
targets: {
ie: '11'
}
}
]
]
},
webpackMiddleware: { stats: 'errors-only' },
reporters: ['progress'],
port: 9876, // karma web server port
colors: true,
logLevel: config.LOG_INFO,
browsers: ['bs_iPad_mini_2_safari', 'bs_ie_windows_7', 'bs_chrome_69'],
autoWatch: true,
concurrency: Infinity,
singleRun: true
});
};