vue2/build/karma.base.config.js

21 lines
466 B
JavaScript

var webpackConfig = require('./webpack.test.config')
delete webpackConfig.entry
webpackConfig.devtool = 'inline-source-map'
// shared config for all unit tests
module.exports = {
frameworks: ['jasmine'],
files: [
'../test/unit/lib/jquery.js',
'../test/unit/specs/index.js'
],
preprocessors: {
'../test/unit/specs/index.js': ['webpack', 'sourcemap']
},
webpack: webpackConfig,
webpackMiddleware: {
noInfo: true
},
singleRun: true
}