2014-11-25 02:44:50 +00:00
|
|
|
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']
|
|
|
|
},
|
2014-11-25 02:44:50 +00:00
|
|
|
reporters: ['progress', 'notify'],
|
|
|
|
colors: true,
|
|
|
|
logLevel: karma.LOG_INFO,
|
2016-07-27 15:20:11 +00:00
|
|
|
browsers: ['Firefox'],
|
2014-11-25 02:44:50 +00:00
|
|
|
autoWatch: true,
|
|
|
|
singleRun: false,
|
2016-10-15 16:33:28 +00:00
|
|
|
webpack: {
|
|
|
|
devtool: 'inline-source-map',
|
2016-10-15 21:58:26 +00:00
|
|
|
module: {
|
|
|
|
loaders: [
|
|
|
|
{
|
|
|
|
test: /\.js$/,
|
|
|
|
exclude: /node_modules/,
|
2017-07-29 20:18:52 +00:00
|
|
|
loader: 'babel-loader'
|
2016-10-15 21:58:26 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
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
|
|
|
}
|
2014-11-25 02:44:50 +00:00
|
|
|
});
|
|
|
|
};
|