regexper-static/karma.conf.js

36 lines
850 B
JavaScript
Raw Normal View History

module.exports = function(karma) {
karma.set({
2016-10-15 21:23:41 +00:00
frameworks: ['jasmine'],
2016-10-15 16:33:28 +00:00
files: [ 'spec/test_index.js' ],
preprocessors: {
'spec/test_index.js': ['webpack', 'sourcemap']
},
reporters: ['progress', 'notify'],
colors: true,
logLevel: karma.LOG_INFO,
browsers: ['Firefox'],
autoWatch: true,
singleRun: false,
2016-10-15 16:33:28 +00:00
webpack: {
devtool: 'inline-source-map',
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
2017-07-29 20:18:52 +00:00
loader: 'babel-loader'
},
{
test: require.resolve('snapsvg'),
loader: 'imports-loader?this=>window,fix=>module.exports=0'
},
{
test: /\.peg$/,
loader: require.resolve('./lib/canopy-loader')
}
]
}
2016-10-15 16:33:28 +00:00
}
});
};