feat: initial commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import "@testing-library/jest-dom/vitest";
|
||||
|
||||
if (typeof window !== "undefined") {
|
||||
class TestResizeObserver implements ResizeObserver {
|
||||
observe(): void {}
|
||||
unobserve(): void {}
|
||||
disconnect(): void {}
|
||||
}
|
||||
globalThis.ResizeObserver = TestResizeObserver;
|
||||
if (!HTMLElement.prototype.scrollTo) HTMLElement.prototype.scrollTo = () => undefined;
|
||||
}
|
||||
Reference in New Issue
Block a user