forked from neos/neos-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
42 lines (40 loc) · 1.19 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
const webpackConfig = require('./webpack.testing.config.js');
module.exports = function (config) {
config.set({
port: 9876,
files: [
//
// Since `PhantomJS` itself uses an outdated V8 core,
// we need to polyfill a lot of ES5 & E2015 functionallity.
//
'./node_modules/phantomjs-polyfill/bind-polyfill.js',
'./node_modules/babel-polyfill/browser.js',
'./node_modules/whatwg-fetch/fetch.js',
'karma.entry.js'
],
preprocessors: {
'karma.entry.js': 'webpack'
},
browsers: ['PhantomJS'],
frameworks: ['mocha', 'sinon-chai'],
reporters: ['mocha', 'coverage'],
plugins: [
'karma-phantomjs-launcher',
'karma-chai',
'karma-sinon-chai',
'karma-mocha',
'karma-sourcemap-loader',
'karma-webpack',
'karma-coverage',
'karma-mocha-reporter'
],
webpack: webpackConfig,
webpackServer: {
noInfo: true
},
coverageReporter: {
type: 'lcov',
dir: 'Coverage/'
}
});
};