import "@testing-library/jest-dom/vitest"; // jsdom doesn't implement these - Radix UI's Select (and other primitives // built on pointer events) call them unconditionally, so tests that open // one throw without these no-op polyfills. if (!Element.prototype.hasPointerCapture) { Element.prototype.hasPointerCapture = () => false; } if (!Element.prototype.setPointerCapture) { Element.prototype.setPointerCapture = () => {}; } if (!Element.prototype.releasePointerCapture) { Element.prototype.releasePointerCapture = () => {}; } if (!Element.prototype.scrollIntoView) { Element.prototype.scrollIntoView = () => {}; }