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
Even if jsdom-global won't add this as a default, I'd say some documentation would be helpful.
Like how to enable pretendToBeVisual when initiating jsdom-global. From jsdom docs, I see that we need to construct a new window object:
const window = (new JSDOM(``, { pretendToBeVisual: true })).window;
But I'm not 100% where to do this? My global unit tests setup currently looks like:
Using jsdom-global w/ some mocha tests and I've been polyfilling rAF up to this point. jsdom 11 now ships with
requestAnimationFrame
, but it has to be enabled. Is this somethingjsdom-global
would be interested in doing by default?The text was updated successfully, but these errors were encountered: