From cbf7253577cd67614c2f7353bd94606173a7b73c Mon Sep 17 00:00:00 2001 From: Valentin Palkovic Date: Wed, 26 Apr 2023 11:41:49 +0200 Subject: [PATCH] Merge pull request #22260 from storybookjs/valentin/fix-unit-tests Add regex to ignore outdated Browserslist in Jest initialization base file --- code/jest.init.base.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/code/jest.init.base.ts b/code/jest.init.base.ts index dc2d2b9c500b..5641077f934c 100644 --- a/code/jest.init.base.ts +++ b/code/jest.init.base.ts @@ -28,6 +28,7 @@ Object.defineProperty(global, 'localStorage', { value: localStorageMock, writabl const ignoreList = [ (error: any) => error.message.includes('":nth-child" is potentially unsafe'), (error: any) => error.message.includes('":first-child" is potentially unsafe'), + (error: any) => error.message.match(/Browserslist: .* is outdated. Please run:/), (error: any) => error.message.includes('Failed prop type') && error.stack.includes('storyshots'), (error: any) => error.message.includes('react-async-component-lifecycle-hooks') &&