You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
948 B

9 years ago
var alias = require('./alias')
var webpack = require('webpack')
var webpackConfig = {
resolve: {
alias: alias
9 years ago
},
module: {
rules: [
9 years ago
{
test: /\.js$/,
loader: 'babel-loader',
9 years ago
exclude: /node_modules/
}
]
},
plugins: [
new webpack.DefinePlugin({
__WEEX__: false,
9 years ago
'process.env': {
NODE_ENV: '"development"',
TRANSITION_DURATION: process.env.SAUCE ? 500 : 50,
TRANSITION_BUFFER: process.env.SAUCE ? 50 : 10
9 years ago
}
})
],
devtool: '#inline-source-map'
}
// shared config for all unit tests
module.exports = {
frameworks: ['jasmine'],
files: [
'../test/unit/index.js'
],
preprocessors: {
'../test/unit/index.js': ['webpack', 'sourcemap']
},
webpack: webpackConfig,
webpackMiddleware: {
noInfo: true
},
plugins: [
'karma-jasmine',
'karma-mocha-reporter',
'karma-sourcemap-loader',
'karma-webpack'
]
9 years ago
}