| 1 | import { beforeEach } from "vite-plus/test"; |
| 2 | |
| 3 | beforeEach(() => { |
| 4 | Object.defineProperty(Range.prototype, "getClientRects", { configurable: true, value: () => [] }); |
| 5 | Object.defineProperty(Range.prototype, "getBoundingClientRect", { |
| 6 | configurable: true, |
| 7 | value: () => new DOMRect(), |
| 8 | }); |
| 9 | }); |