-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkarma.conf.js
60 lines (60 loc) · 1.7 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
module.exports = function (config) {
config.set({
frameworks: ['mocha', 'chai'],
preprocessors: {
'test/**/*.spec.js': ['babel', 'coverage']
},
babelPreprocessor: {
filename: function (file) {
return file.originalPath.replace(/\.js$/, '.es5.js');
},
sourceFileName: function (file) {
return file.originalPath;
}
},
files: [
'lib/index.js',
{
pattern: 'lib/libtiff-worker.js',
watched: true,
included: false,
served: true
},
{
pattern: 'lib/*.js.map',
watched: false,
included: false,
served: true
},
'test/**/*.spec.js',
{
pattern: 'lib/tiff.raw.*',
watched: false,
included: false,
served: true
},
{
pattern: 'test/assets/*',
watched: false,
included: false,
served: true
}
],
proxies: {
'/base/lib/libtiffjs': '/base/base/index.js',
},
// WebAssembly takes a while to parse
browserDisconnectTimeout: 4000,
reporters: ['progress', 'coverage'],
port: 9876, // karma web server port
colors: true,
logLevel: config.LOG_INFO,
browsers: ['ChromeHeadless'],
concurrency: Infinity,
coverageReporter: {
type : 'lcovonly',
dir : 'coverage/',
subdir: '.'
}
});
};