-
Notifications
You must be signed in to change notification settings - Fork 16
/
karma.conf.js
57 lines (57 loc) · 1.71 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
module.exports = function (config) {
config.set({
frameworks: ['mocha', 'chai'],
preprocessors: {
'test/**/*.spec.js': ['babel']
},
babelPreprocessor: {
filename: function (file) {
return file.originalPath.replace(/\.js$/, '.es5.js');
},
sourceFileName: function (file) {
return file.originalPath;
}
},
files: [
'lib/loam.js',
{
pattern: 'lib/loam-worker.js',
watched: true,
included: false,
served: true
},
{
pattern: 'lib/*.js.map',
watched: false,
included: false,
served: true
},
'test/**/*.spec.js',
{
pattern: 'node_modules/gdal-js/gdal.*',
watched: false,
included: false,
served: true
},
{
pattern: 'test/assets/*',
watched: false,
included: false,
served: true
}
],
proxies: {
'/base/lib/gdal.js': '/base/node_modules/gdal-js/gdal.js',
'/base/lib/gdal.wasm': '/base/node_modules/gdal-js/gdal.wasm',
'/base/lib/gdal.data': '/base/node_modules/gdal-js/gdal.data'
},
// WebAssembly takes a while to parse
browserDisconnectTimeout: 4000,
reporters: ['progress'],
port: 9876, // karma web server port
colors: true,
logLevel: config.LOG_INFO,
browsers: ['ChromeHeadless'],
concurrency: Infinity
});
};