We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ResizeObserver
1 parent b503f20 commit 877fb33Copy full SHA for 877fb33
src/test/jest-setup.js
@@ -2,3 +2,9 @@ import React from 'react'
2
// whatever else you need in here
3
4
global.React = React
5
+
6
+global.ResizeObserver = jest.fn().mockImplementation(() => ({
7
+ observe: jest.fn(),
8
+ unobserve: jest.fn(),
9
+ disconnect: jest.fn(),
10
+}))
0 commit comments