From 9191fa73df8a1f48a8728959beb00e67dd4fe3b4 Mon Sep 17 00:00:00 2001
From: Johann-S <johann.servoire@gmail.com>
Date: Tue, 20 Mar 2018 16:08:19 +0100
Subject: [PATCH] throw error when coverage is under our thresholds

---
 js/tests/karma.conf.js | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/js/tests/karma.conf.js b/js/tests/karma.conf.js
index 5a35742196..d980fc81cc 100644
--- a/js/tests/karma.conf.js
+++ b/js/tests/karma.conf.js
@@ -57,14 +57,13 @@ module.exports = (config) => {
     coverageIstanbulReporter: {
       dir: jsCoveragePath,
       reports: ['lcov', 'text-summary'],
-      fixWebpackSourcePaths: true,
       thresholds: {
-        emitWarning: true,
+        emitWarning: false,
         global: {
-          statements: 80,
-          lines: 80,
-          branches: 80,
-          functions: 80
+          statements: 89,
+          lines: 89,
+          branches: 83,
+          functions: 84
         }
       }
     }
-- 
GitLab