forked from maptalks/maptalks.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.tdd.config.js
47 lines (44 loc) · 1.09 KB
/
karma.tdd.config.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
const base = {
frameworks: ['mocha', 'expect', 'expect-maptalks', 'sinon', 'happen'],
basePath: '..',
files: [
'dist/maptalks.js',
'test/core/ClassSpec.js',
'test/**/*.js',
{
pattern: 'assets/css/**/*.css',
included: false
}, {
pattern: 'assets/images/**/*.png',
included: false
}, {
pattern: 'test/resources/*',
included: false
}
],
proxies: {
'/images/': '/base/assets/images/',
'/css/': '/base/assets/css/',
'/lib/': '/base/assets/lib/',
'/resources/': '/base/test/resources/'
},
preprocessors: {
'test/core/ClassSpec.js': ['babel']
},
customLaunchers: {
IE10: {
base: 'IE',
'x-ua-compatible': 'IE=EmulateIE10'
},
IE9: {
base: 'IE',
'x-ua-compatible': 'IE=EmulateIE9'
}
}
};
module.exports = function (config) {
config.set(Object.assign(base, {
browsers: ['Chrome'],
reporters: ['mocha']
}));
};