Remove coverage from tests for now.

Breaks the specs.
This commit is contained in:
Roger Braun 2016-11-30 18:15:01 +01:00
parent 5badc930c9
commit 20b2675471

View File

@ -16,11 +16,11 @@ var webpackConfig = merge(baseConfig, {
loaders: utils.styleLoaders() loaders: utils.styleLoaders()
}, },
devtool: '#inline-source-map', devtool: '#inline-source-map',
vue: { // vue: {
loaders: { // loaders: {
js: 'isparta' // js: 'isparta'
} // }
}, // },
plugins: [ plugins: [
new webpack.DefinePlugin({ new webpack.DefinePlugin({
'process.env': require('../../config/test.env') 'process.env': require('../../config/test.env')
@ -32,20 +32,20 @@ var webpackConfig = merge(baseConfig, {
delete webpackConfig.entry delete webpackConfig.entry
// make sure isparta loader is applied before eslint // make sure isparta loader is applied before eslint
webpackConfig.module.preLoaders = webpackConfig.module.preLoaders || [] // webpackConfig.module.preLoaders = webpackConfig.module.preLoaders || []
webpackConfig.module.preLoaders.unshift({ // webpackConfig.module.preLoaders.unshift({
test: /\.js$/, // test: /\.js$/,
loader: 'isparta', // loader: 'isparta',
include: path.resolve(projectRoot, 'src') // include: path.resolve(projectRoot, 'src')
}) // })
// only apply babel for test files when using isparta // // only apply babel for test files when using isparta
webpackConfig.module.loaders.some(function (loader, i) { // webpackConfig.module.loaders.some(function (loader, i) {
if (loader.loader === 'babel') { // if (loader.loader === 'babel') {
loader.include = path.resolve(projectRoot, 'test/unit') // loader.include = path.resolve(projectRoot, 'test/unit')
return true // return true
} // }
}) // })
module.exports = function (config) { module.exports = function (config) {
config.set({ config.set({