Skip to content

Commit

Permalink
Bump @wordpress/components from 28.8.4 to 28.9.0 (#2825)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Oct 8, 2024
1 parent 90164fc commit e832cbc
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 37 deletions.
68 changes: 32 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@wordpress/babel-preset-default": "^7.42.0",
"@wordpress/block-editor": "^14.3.0",
"@wordpress/blocks": "^13.9.0",
"@wordpress/components": "^28.8.0",
"@wordpress/components": "^28.9.0",
"@wordpress/compose": "^7.9.0",
"@wordpress/core-data": "^7.8.0",
"@wordpress/data": "^10.9.0",
Expand Down
9 changes: 9 additions & 0 deletions tests/js/content-helper/structure.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ import {
RelatedPostsProvider,
} from '../../../src/content-helper/editor-sidebar/related-posts/provider';

// Avoid "ReferenceError: ResizeObserver is not defined" error.
window.ResizeObserver =
window.ResizeObserver ||
jest.fn().mockImplementation( () => ( {
disconnect: jest.fn(),
observe: jest.fn(),
unobserve: jest.fn(),
} ) );

// Mock the SettingsProvider component.
jest.mock( '../../../src/content-helper/common/settings/provider', () => ( {
SettingsProvider: ( { children }: { children: React.ReactNode } ) => children,
Expand Down

0 comments on commit e832cbc

Please sign in to comment.