Files
coder/site/test/setup/domStubs.ts
T
2026-01-15 12:38:29 -07:00

8 lines
333 B
TypeScript

// Pointer capture stubs required for Radix UI in JSDOM.
globalThis.HTMLElement.prototype.hasPointerCapture = vi
.fn()
.mockReturnValue(false);
globalThis.HTMLElement.prototype.releasePointerCapture = vi.fn();
globalThis.HTMLElement.prototype.scrollIntoView = vi.fn();
globalThis.HTMLElement.prototype.setPointerCapture = vi.fn();