10 lines
371 B
TypeScript
10 lines
371 B
TypeScript
/** jsdom has no Element.scrollTo. Supply only the method used by VueUse;
|
|
* geometry and visible-window assertions still belong to real browser checks.
|
|
* Set up each test realm explicitly so probes work alone and in any order. */
|
|
if (
|
|
typeof Element !== "undefined" &&
|
|
typeof Element.prototype.scrollTo !== "function"
|
|
) {
|
|
Element.prototype.scrollTo = () => {};
|
|
}
|