From 7f8bb406c5e937d04b08d2a31858b66afb3a8d78 Mon Sep 17 00:00:00 2001 From: Nick Taylor Date: Tue, 19 May 2020 10:00:48 -0400 Subject: [PATCH] Added coverage threshold to jest configuration. (#7948) --- jest.config.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/jest.config.js b/jest.config.js index 1cb88821d..40233fd98 100644 --- a/jest.config.js +++ b/jest.config.js @@ -11,6 +11,14 @@ module.exports = { '!**/__tests__/**', '!**/__stories__/**', ], + coverageThreshold: { + global: { + statements: 39, + branches: 35, + functions: 34, + lines: 39, + }, + }, moduleNameMapper: { '\\.(svg|png)$': '/empty-module.js', '^@crayons(.*)$': '/app/javascript/crayons$1',