Exclude Spec files from CodeCov - mct4563 (#4714)

This commit is contained in:
Scott Bell
2022-01-14 02:07:57 +01:00
committed by GitHub
parent 6bcc9bfd84
commit 7a7202f75b
4 changed files with 73 additions and 6 deletions

View File

@@ -33,11 +33,10 @@ if (coverageEnabled) {
module.exports = (config) => {
const webpackConfig = require('./webpack.dev.js');
delete webpackConfig.output;
if (coverageEnabled) {
webpackConfig.module.rules.push({
test: /\.js$/,
exclude: /node_modules|example|lib|dist/,
exclude: /node_modules|e2e|example|lib|dist|\.*.*Spec\.js/,
use: {
loader: 'istanbul-instrumenter-loader',
options: {
@@ -103,7 +102,7 @@ module.exports = (config) => {
reports: ['lcovonly', 'text-summary'],
thresholds: {
global: {
lines: 66
lines: 55
}
}
},