Skip to content

Commit

Permalink
Merge pull request #22260 from storybookjs/valentin/fix-unit-tests
Browse files Browse the repository at this point in the history
Add regex to ignore outdated Browserslist in Jest initialization base file
  • Loading branch information
valentinpalkovic committed Apr 26, 2023
2 parents e7817e8 + 8099b32 commit cfd6dc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/jest.init.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') &&
Expand Down

0 comments on commit cfd6dc5

Please sign in to comment.