-
Notifications
You must be signed in to change notification settings - Fork 2
/
karma.conf.js
43 lines (35 loc) · 1.02 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
// jshint strict: false
const webpackConfig = require('./webpack.config');
delete webpackConfig.entry;
delete webpackConfig.output;
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jquery-2.0.0', 'jasmine'],
files: [
'./test/unit/setup.js',
{pattern: './test/unit/fixtures/**/*.html', included: false, served: true},
'test/unit/**/*.spec.js'
],
preprocessors: {
'./test/unit/setup.js': ['webpack'],
'./src/scripts/**/*.js': ['webpack'],
'test/unit/**/*.spec.js': ['webpack']
},
webpack: Object.assign({}, webpackConfig, {
output: {
}
}),
webpackMiddleware: {
noInfo: true
},
logLevel: config.LOG_DEBUG,
reporters: ['spec'],
coverageReporter: {
type: 'html',
dir: 'coverage/'
},
browsers: ['PhantomJS'],
autoWatchBatchDelay: 3000
});
};