throw error when coverage is under our thresholds

This commit is contained in:
Johann-S 2018-03-20 16:08:19 +01:00
parent bedc96e48b
commit 9191fa73df
1 changed files with 5 additions and 6 deletions

View File

@ -57,14 +57,13 @@ module.exports = (config) => {
coverageIstanbulReporter: { coverageIstanbulReporter: {
dir: jsCoveragePath, dir: jsCoveragePath,
reports: ['lcov', 'text-summary'], reports: ['lcov', 'text-summary'],
fixWebpackSourcePaths: true,
thresholds: { thresholds: {
emitWarning: true, emitWarning: false,
global: { global: {
statements: 80, statements: 89,
lines: 80, lines: 89,
branches: 80, branches: 83,
functions: 80 functions: 84
} }
} }
} }