2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-08 17:22:34 +03:00

Fixing test coverage reporting

This commit is contained in:
mzabriskie
2015-10-07 14:36:35 -06:00
parent 4f732e8caa
commit fcd2121c8b
3 changed files with 15 additions and 6 deletions
+14 -4
View File
@@ -15,7 +15,7 @@ module.exports = function(config) {
// list of files / patterns to load in the browser
files: [
'webpack.tests.js'
'test/specs/**/*.spec.js'
],
@@ -28,17 +28,27 @@ module.exports = function(config) {
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
'webpack.tests.js': ['webpack', 'sourcemap', 'coverage']
'test/specs/**/*.spec.js': ['webpack', 'sourcemap']
},
webpack: {
cache: true,
devtool: 'inline-source-map',
module: {
postLoaders: [
{
test: /\.js$/,
exclude: /(node_modules|test)/,
loader: 'istanbul-instrumenter'
}
]
},
externals: [
{
'./adapters/http': 'var undefined'
}
],
devtool: 'inline-source-map'
]
},
webpackServer: {