-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkarma.conf.js
38 lines (38 loc) · 1016 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
30
31
32
33
34
35
36
37
38
const webpackConfig = require('./webpack.config.js');
const path = require('path');
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jasmine'],
preprocessors: {
'test/**/*.spec.js': ['webpack'],
},
files: [
'../node_modules/babel-polyfill/dist/polyfill.js',
{pattern: 'core/*.js', watched:true, served:false, included:false, nocache:false},
{pattern: 'tests/*.js',watched:true,served:true,included:true}
],
singleRun: true,
port: 9876,
colors: true,
browserDisconnectTimeout: 20000,
browserDisconnectTolerance: 2,
browserNoActivityTimeout: 150000,
reportSlowerThan: 500,
coverageReporter: {
type: 'html',
dir: '../coverage/'
},
webpack: webpackConfig,
browsers: ['PhantomJS'],
logLevel: 'INFO',
reporters: ['coverage', 'spec'],
specReporter: {
suppressSkipped: true
},
webpackMiddleware: {
noInfo: true,
stats: 'errors-only'
}
});
};