2017-01-31 17:31:55 -05:00
|
|
|
// #docregion
|
|
|
|
var webpackConfig = require('./webpack.test');
|
|
|
|
|
|
|
|
module.exports = function (config) {
|
|
|
|
var _config = {
|
|
|
|
basePath: '',
|
|
|
|
|
|
|
|
frameworks: ['jasmine'],
|
|
|
|
|
|
|
|
files: [
|
|
|
|
{pattern: './config/karma-test-shim.js', watched: false}
|
|
|
|
],
|
|
|
|
|
|
|
|
preprocessors: {
|
|
|
|
'./config/karma-test-shim.js': ['webpack', 'sourcemap']
|
|
|
|
},
|
|
|
|
|
|
|
|
webpack: webpackConfig,
|
|
|
|
|
|
|
|
webpackMiddleware: {
|
|
|
|
stats: 'errors-only'
|
|
|
|
},
|
|
|
|
|
|
|
|
webpackServer: {
|
|
|
|
noInfo: true
|
|
|
|
},
|
|
|
|
|
2017-03-27 11:08:53 -04:00
|
|
|
reporters: ['kjhtml'],
|
2017-01-31 17:31:55 -05:00
|
|
|
port: 9876,
|
|
|
|
colors: true,
|
|
|
|
logLevel: config.LOG_INFO,
|
|
|
|
autoWatch: false,
|
2017-03-27 11:08:53 -04:00
|
|
|
browsers: ['Chrome'],
|
2017-01-31 17:31:55 -05:00
|
|
|
singleRun: true
|
|
|
|
};
|
|
|
|
|
|
|
|
config.set(_config);
|
|
|
|
};
|
|
|
|
// #enddocregion
|