-
Notifications
You must be signed in to change notification settings - Fork 6
/
karma.conf.js
56 lines (54 loc) · 1.35 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
module.exports = function (config) {
'use strict';
const UI5_VERSION = '1.61.2';
const CI_MODE = !!config.singleRun;
config.set({
frameworks: [
'openui5', 'mocha', 'chai', 'chai-as-promised'
],
reporters: ["mocha"].concat(CI_MODE ? 'coverage' : []),
mochaReporter: {
showDiff: true
},
coverageReporter: {
reporters: [{type: 'lcov'}],
subdir: browser => browser.split(' ')[0]
},
preprocessors: CI_MODE ? {"src/**/*.js": ["coverage"]} : {},
files: [
'node_modules/mobx/lib/mobx.umd.js',
{pattern: 'src/**/*.js', included: false, served: true, watched: true},
'test/**/*.js'
],
openui5: {
path: 'https://sapui5.hana.ondemand.com/' + UI5_VERSION + '/resources/sap-ui-core.js',
useMockServer: false
},
client: {
chai: {
includeStack: true
},
mocha: {
timeout: 100000
},
openui5: {
config: {
theme: 'sap_belize',
resourceRoots: {
'sap.ui.mobx': '/base/src',
'sap.ui.mobx.test': '/base/test'
}
}
}
},
browsers: [
'Chrome_without_security'
],
customLaunchers: {
Chrome_without_security: {
base: 'Chrome',
flags: ['--disable-web-security'].concat(require('is-ci') ? '--no-sandbox' : [])
}
}
});
};