vue2/build/karma.base.config.js

21 lines
466 B
JavaScript
Raw Permalink Normal View History

var webpackConfig = require('./webpack.test.config')
delete webpackConfig.entry
2016-03-01 02:05:44 +08:00
webpackConfig.devtool = 'inline-source-map'
2015-11-19 04:01:05 +08:00
// shared config for all unit tests
module.exports = {
frameworks: ['jasmine'],
files: [
'../test/unit/lib/jquery.js',
'../test/unit/specs/index.js'
],
preprocessors: {
2016-03-01 02:05:44 +08:00
'../test/unit/specs/index.js': ['webpack', 'sourcemap']
2015-11-19 04:01:05 +08:00
},
webpack: webpackConfig,
2015-11-19 04:01:05 +08:00
webpackMiddleware: {
noInfo: true
},
singleRun: true
}