var webpackConfig = require('./webpack.config') delete webpackConfig.output delete webpackConfig.entry module.exports = function (config) { config.set({ frameworks: ['mocha'], files: ['test/**/*.spec.js'], preprocessors: { '**/*.spec.js': ['webpack', 'sourcemap'] }, webpack: webpackConfig, reporters: ['spec'], browsers: ['Chrome'] }) }