-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
karma.conf.js
41 lines (37 loc) · 904 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
39
40
41
'use strict';
var fullWebpackConfig = require('./webpack.config.js');
fullWebpackConfig.devtool = 'eval';
fullWebpackConfig.cache = true;
module.exports = function(config) {
return config.set({
basePath: '',
frameworks: ['jasmine-jquery','jasmine'],
files: [
'public/js/app.js',
'public/js/**/*.spec.js'
],
exclude: [],
preprocessors: {
'public/js/app.js': ['webpack'],
'public/js/**/*.spec.js': ['webpack']
},
webpack: fullWebpackConfig,
webpackServer: {
noInfo: true
},
reporters: ['progress'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['PhantomJS'],
plugins: [
'karma-phantomjs-launcher',
'karma-jasmine-jquery',
'karma-jasmine',
'karma-webpack'
],
singleRun: false,
concurrency: Infinity
});
};