fix(testing-karma): exclude spec files in node_modules

previously we only excluded `test` files.
This commit is contained in:
Benny Powers
2019-03-06 10:17:35 +02:00
committed by Thomas Allmer
parent 04d5be7a51
commit c4ad1c12d7

View File

@@ -65,7 +65,7 @@ module.exports = config => ({
loader: 'istanbul-instrumenter-loader',
enforce: 'post',
include: path.resolve('./'),
exclude: /node_modules|bower_components|\.test\.js$/,
exclude: /node_modules|bower_components|\.(spec|test)\.js$/,
options: {
esModules: true,
},