mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-04 18:51:17 +00:00
49 lines
873 B
JavaScript
49 lines
873 B
JavaScript
module.exports = function(config) {
|
|
config.set({
|
|
browsers: [
|
|
'PhantomJS'
|
|
],
|
|
files: [
|
|
{
|
|
pattern: 'tests.webpack.js',
|
|
watched: false
|
|
}
|
|
],
|
|
frameworks: [
|
|
'jasmine'
|
|
],
|
|
preprocessors: {
|
|
'tests.webpack.js': ['webpack']
|
|
},
|
|
reporters: [
|
|
'dots',
|
|
'coverage'
|
|
],
|
|
coverageReporter: {
|
|
type: 'text-summary'
|
|
},
|
|
webpack: {
|
|
module: {
|
|
loaders: [
|
|
{
|
|
test: /\.js?$/,
|
|
exclude: /node_modules/,
|
|
loader: 'babel-loader'
|
|
}
|
|
],
|
|
postLoaders: [
|
|
{
|
|
test: /\.js$/,
|
|
exclude: /(test|node_modules|bower_components)\//,
|
|
loader: 'istanbul-instrumenter'
|
|
}
|
|
]
|
|
},
|
|
watch: true
|
|
},
|
|
webpackServer: {
|
|
noInfo: true
|
|
}
|
|
});
|
|
};
|