18 lines
468 B
TypeScript
18 lines
468 B
TypeScript
import "@testing-library/jest-dom/vitest";
|
|
|
|
if (!HTMLElement.prototype.hasPointerCapture) {
|
|
HTMLElement.prototype.hasPointerCapture = () => false;
|
|
}
|
|
|
|
if (!HTMLElement.prototype.setPointerCapture) {
|
|
HTMLElement.prototype.setPointerCapture = () => {};
|
|
}
|
|
|
|
if (!HTMLElement.prototype.releasePointerCapture) {
|
|
HTMLElement.prototype.releasePointerCapture = () => {};
|
|
}
|
|
|
|
if (!HTMLElement.prototype.scrollIntoView) {
|
|
HTMLElement.prototype.scrollIntoView = () => {};
|
|
}
|