-
Notifications
You must be signed in to change notification settings - Fork 6
/
karma.conf.js
executable file
·48 lines (48 loc) · 1.03 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
// Reference: http://karma-runner.github.io/0.13/config/configuration-file.html
module.exports = function karmaConfig(config) {
config.set({
frameworks: [
'mocha'
],
reporters: [
'mocha',
'coverage'
],
mochaReporter: {
showDiff: true
},
files: [
'node_modules/phantomjs-polyfill/bind-polyfill.js',
'node_modules/babel-polyfill/dist/polyfill.js',
{
pattern: 'tests/**/*_test.*',
watched: false,
included: true,
served: true
}
],
preprocessors: {
'tests/**/*_test.*': ['webpack', 'sourcemap']
},
plugins: [
'karma-phantomjs-launcher',
'karma-mocha',
'karma-sourcemap-loader',
'karma-webpack',
'karma-mocha-reporter',
'karma-coverage'
],
browsers: [
'PhantomJS'
],
singleRun: true,
coverageReporter: {
dir: 'build/coverage/',
type: 'html'
},
webpack: require('./webpack.config'),
webpackMiddleware: {
noInfo: true
}
});
};