2016-12-29 16:42:48 -05:00
|
|
|
var path = require('path');
|
|
|
|
var webpackConfig = require('./webpack.config.js');
|
|
|
|
var ROOT_PATH = path.resolve(__dirname, '..');
|
|
|
|
|
|
|
|
// Karma configuration
|
|
|
|
module.exports = function(config) {
|
|
|
|
config.set({
|
|
|
|
basePath: ROOT_PATH,
|
2017-01-06 18:21:54 -05:00
|
|
|
frameworks: ['jasmine'],
|
2016-12-29 16:42:48 -05:00
|
|
|
files: [
|
2017-01-06 18:21:54 -05:00
|
|
|
'spec/javascripts/spec_helper.js',
|
2017-01-06 14:27:33 -05:00
|
|
|
'spec/javascripts/**/*_spec.js?(.es6)',
|
|
|
|
{ pattern: 'spec/javascripts/fixtures/**/*@(.json|.html|.html.raw)', included: false },
|
2016-12-29 16:42:48 -05:00
|
|
|
],
|
|
|
|
preprocessors: {
|
2017-01-06 18:21:54 -05:00
|
|
|
'spec/javascripts/**/*.js?(.es6)': ['webpack'],
|
2016-12-29 16:42:48 -05:00
|
|
|
},
|
|
|
|
webpack: webpackConfig,
|
|
|
|
webpackMiddleware: { stats: 'errors-only' },
|
|
|
|
});
|
|
|
|
};
|