forked from onefinestay/react-daterange-picker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
59 lines (49 loc) · 1.07 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
module.exports = function (config) {
config.set({
browsers: ['PhantomJS'],
frameworks: ['jasmine'],
files: [
{
pattern: './src/tests.webpack.js',
watched: false,
},
],
preprocessors: {
'src/tests.webpack.js': ['webpack'],
},
webpack: {
resolve: {
extensions: ['', '.js', '.jsx'],
},
module: {
loaders: [
{ test: /\.(js|jsx)$/, exclude: /node_modules/, loader: 'babel-loader' },
],
},
stats: {
colors: true,
},
devtool: 'inline-source-map',
},
webpackMiddleware: {
noInfo: true,
},
reporters: ['mocha'],
mochaReporter: {
output: 'full',
},
coverageReporter: {
reporters: [
{ type: 'html', dir: 'dist/ui-coverage', subdir: 'html' },
{ type: 'cobertura', dir: 'dist/ui-coverage', subdir: 'cobertura' },
{ type: 'text-summary' },
],
},
thresholdReporter: {
statements: 90,
branches: 85,
functions: 90,
lines: 90,
},
});
};