gitlab-org--gitlab-foss/config/karma.config.js

22 lines
650 B
JavaScript
Raw Normal View History

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-13 11:05:26 -05:00
browsers: ['PhantomJS'],
frameworks: ['jasmine'],
2016-12-29 16:42:48 -05:00
files: [
{ pattern: 'spec/javascripts/test_bundle.js', watched: false },
{ pattern: 'spec/javascripts/fixtures/**/*@(.json|.html|.html.raw)', included: false },
2016-12-29 16:42:48 -05:00
],
preprocessors: {
'spec/javascripts/**/*.js?(.es6)': ['webpack', 'sourcemap'],
2016-12-29 16:42:48 -05:00
},
webpack: webpackConfig,
webpackMiddleware: { stats: 'errors-only' },
});
};