From f03882a3ca037942ccb8f5f22a3b41f17e6138f8 Mon Sep 17 00:00:00 2001 From: Brad Decker Date: Fri, 25 Jun 2021 16:31:01 -0500 Subject: [PATCH] fix jest tests to run ui tests (#11390) --- jest.config.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/jest.config.js b/jest.config.js index f236fbb90..8e215b994 100644 --- a/jest.config.js +++ b/jest.config.js @@ -2,11 +2,7 @@ module.exports = { restoreMocks: true, coverageDirectory: 'jest-coverage/', collectCoverageFrom: ['/ui/**/swaps/**'], - coveragePathIgnorePatterns: [ - '.stories.js', - '.snap', - '**/shared/**/?(*.)+(test).js', - ], + coveragePathIgnorePatterns: ['.stories.js', '.snap'], coverageThreshold: { global: { branches: 32.75, @@ -17,5 +13,8 @@ module.exports = { }, setupFiles: ['./test/setup.js', './test/env.js'], setupFilesAfterEnv: ['./test/jest/setup.js'], - testMatch: ['ui/**/?(*.)+(test).js', '**/shared/**/?(*.)+(test).js'], + testMatch: [ + '/ui/**/?(*.)+(test).js', + '/shared/**/?(*.)+(test).js', + ], };