UNPKG

vue-storefront

Version:
30 lines (27 loc) 709 B
const baseConfig = require('../../build/webpack.base.config') const webpack = require('webpack') const webpackConfig = Object.assign({}, baseConfig, { devtool: '#inline-source-map', plugins: [ new webpack.DefinePlugin({ 'process.env.NODE_ENV': '"test"' }) ] }) // no need for app entry during tests delete webpackConfig.entry module.exports = function (config) { config.set({ browsers: ['PhantomJS'], frameworks: ['mocha', 'sinon-chai'], reporters: ['spec'], files: ['./index.js'], preprocessors: { './index.js': ['webpack', 'sourcemap'] }, webpack: webpackConfig, webpackMiddleware: { noInfo: true } }) }