-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkarma.conf.js
More file actions
55 lines (50 loc) · 1.14 KB
/
karma.conf.js
File metadata and controls
55 lines (50 loc) · 1.14 KB
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
const webpackConfig = require('./webpack.config.js');
webpackConfig.entry = {};
webpackConfig.devtool = 'eval';
module.exports = (config) => {
config.set({
basePath: '',
frameworks: ['jasmine'],
reporters: ['progress', 'coverage'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
autoWatchBatchDelay: 300,
files: [
'specs.webpack.js',
],
coverageReporter: {
dir: 'dist/coverage/',
instrumenterOptions: {
istanbul: { noCompact: true },
},
reporters: [
{ type: 'text-summary' },
{ type: 'html' },
],
},
preprocessors: {
'specs.webpack.js': ['webpack', 'sourcemap', 'babel'],
},
plugins: [
'karma-coverage',
'karma-webpack',
'karma-jasmine',
'karma-chrome-launcher',
'karma-sourcemap-loader',
'karma-babel-preprocessor'],
webpack: webpackConfig,
webpackMiddleware: {
noInfo: true,
stats: {
colors: true,
chunks: false,
modules: false,
reasons: false,
},
},
});
};