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.
1 parent f1730f9 commit 52a1c1eCopy full SHA for 52a1c1e
tests/setup.js
@@ -1,3 +1,10 @@
1
// jsdom add motion events to test CSSMotion
2
window.AnimationEvent = window.AnimationEvent || (() => {});
3
window.TransitionEvent = window.TransitionEvent || (() => {});
4
+global.ResizeObserver = jest.fn(() => {
5
+ return {
6
+ observe() { },
7
+ unobserve() { },
8
+ disconnect() { },
9
+ };
10
+});
0 commit comments