mirror of
https://github.com/coder/coder.git
synced 2026-06-04 05:28:20 +00:00
8 lines
333 B
TypeScript
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();
|