690617:1649 237 #01.4
This commit is contained in:
@@ -76,6 +76,16 @@ class ResizeObserverMock {
|
||||
|
||||
vi.stubGlobal('ResizeObserver', ResizeObserverMock);
|
||||
|
||||
class IntersectionObserverMock {
|
||||
observe() {}
|
||||
|
||||
unobserve() {}
|
||||
|
||||
disconnect() {}
|
||||
}
|
||||
|
||||
vi.stubGlobal('IntersectionObserver', IntersectionObserverMock);
|
||||
|
||||
if (!Element.prototype.hasPointerCapture) {
|
||||
Element.prototype.hasPointerCapture = () => false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user