From 09d5f43a70182ef8c6e450ab103f90d69ebee12a Mon Sep 17 00:00:00 2001 From: Daniel <80175477+dan437@users.noreply.github.com> Date: Wed, 8 Sep 2021 19:30:41 +0200 Subject: [PATCH] Set up Jest minimum threshold for "ui" and "shared" folders (#11922) --- jest.config.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/jest.config.js b/jest.config.js index 7b556fa22..5a6a326d7 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,17 +1,14 @@ module.exports = { restoreMocks: true, coverageDirectory: 'jest-coverage/', - collectCoverageFrom: [ - '/ui/**/swaps/**', - '/ui/ducks/send/**', - ], + collectCoverageFrom: ['/ui/**/*.js', '/shared/**/*.js'], coveragePathIgnorePatterns: ['.stories.js', '.snap'], coverageThreshold: { global: { - branches: 45.24, - functions: 51.94, - lines: 58.36, - statements: 58.6, + branches: 35, + functions: 37, + lines: 43, + statements: 43, }, }, setupFiles: ['./test/setup.js', './test/env.js'],