Skip to content

Commit cbf7253

Browse files
valentinpalkovicshilman
authored andcommitted
Merge pull request #22260 from storybookjs/valentin/fix-unit-tests
Add regex to ignore outdated Browserslist in Jest initialization base file
1 parent 2dce612 commit cbf7253

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

code/jest.init.base.ts

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Object.defineProperty(global, 'localStorage', { value: localStorageMock, writabl
2828
const ignoreList = [
2929
(error: any) => error.message.includes('":nth-child" is potentially unsafe'),
3030
(error: any) => error.message.includes('":first-child" is potentially unsafe'),
31+
(error: any) => error.message.match(/Browserslist: .* is outdated. Please run:/),
3132
(error: any) => error.message.includes('Failed prop type') && error.stack.includes('storyshots'),
3233
(error: any) =>
3334
error.message.includes('react-async-component-lifecycle-hooks') &&

0 commit comments

Comments
 (0)