You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A wild guess here. It seems that in your case the ResizeObserver is already defined. A polyfill maybe? Another mock? The cannot redefine property error would arise if the polyfill was applied, in such manner, for example:
Note the configurable: false. In that case my code wouldn't be able to redefine it. Can you check if it's the case, please? I changed how I mock the ResizeObserver class from basically:
Hi
with version 1.4.0 this error starts to appear.
Node version 14.20.0
Jest version 27.5.1
jsdom => jest-environment-jsdom@27.5.1
The text was updated successfully, but these errors were encountered: