2015-12-27 09:02:57 +08:00
|
|
|
var webpackConfig = require('./webpack.test.config')
|
|
|
|
delete webpackConfig.entry
|
2016-03-01 02:05:44 +08:00
|
|
|
webpackConfig.devtool = 'inline-source-map'
|
2015-12-27 09:02:57 +08:00
|
|
|
|
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
|
|
|
},
|
2015-12-27 09:02:57 +08:00
|
|
|
webpack: webpackConfig,
|
2015-11-19 04:01:05 +08:00
|
|
|
webpackMiddleware: {
|
|
|
|
noInfo: true
|
|
|
|
},
|
|
|
|
singleRun: true
|
|
|
|
}
|