-
Notifications
You must be signed in to change notification settings - Fork 12
/
karma.conf.js
29 lines (29 loc) · 859 Bytes
/
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
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine'],
files: [
{ pattern: 'src/test/tsloader.js', watched: false },
],
exclude: [
],
preprocessors: {
'src/test/tsloader.js': ['webpack', 'sourcemap','coverage'],
},
webpack: require('./webpack.config')({ env: 'test' }),
reporters: ['spec', 'coverage', 'remap-coverage'],
port: 9876,
colors: true,
logLevel: config.LOG_DEBUG,
autoWatch: true,
browsers: ['ChromeHeadless'],
coverageReporter: {
reporters: [
{ type: 'json', subdir: '.', file: 'coverage.json' },
{ type : 'text-summary'},
]
},
singleRun: true,
concurrency: Infinity
});
};