diff --git a/config/webpack/webpack.config.coverage.js b/config/webpack/webpack.config.coverage.js index 97cb570..fdfacc3 100644 --- a/config/webpack/webpack.config.coverage.js +++ b/config/webpack/webpack.config.coverage.js @@ -14,8 +14,8 @@ module.exports = _.merge({}, testCfg, { // Manually instrument client code for code coverage. // https://github.com/deepsweet/isparta-loader handles ES6 + normal JS. { - test: /(test|client)\/.*\.jsx?$/, - exclude: /node_modules\//, + test: /src\/.*\.jsx?$/, + exclude: /(test|node_modules)\//, loader: ispartaLoader } ]