Skip to content

Commit

Permalink
UIEH-1407 mock resizeObserver
Browse files Browse the repository at this point in the history
  • Loading branch information
BogdanDenis committed Feb 13, 2024
1 parent 177cf41 commit f80e13a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/jest/__mock__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ import './stripesCore.mock';
import './stripesIcon.mock';
import './stripesSmartComponent.mock';
import './matchMedia.mock';
import './resizeObserver.mock';
4 changes: 4 additions & 0 deletions test/jest/__mock__/resizeObserver.mock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
window.ResizeObserver = jest.fn(() => ({
observe: jest.fn(),
unobserve: jest.fn(),
}));

0 comments on commit f80e13a

Please sign in to comment.