packages/tests/__setup__/mockIntersectionObserver.js
/**
 * Set the `isIntersecting` on all current IntersectionObserver instances
 * @param isIntersecting {boolean}
 */
Set the `isIntersecting` on all current IntersectionObserver instances
@param isIntersecting {boolean}
Set the ` isIntersecting ` on all current IntersectionObserver instances @param isIntersecting { boolean }
function mockAllIsIntersecting(isIntersecting) {
  Object.entries(observers).forEach(([observer, item]) => {
    triggerIntersection(Array.from(item.elements), isIntersecting, observer, item);
  });
}
function mockAllIsIntersecting ( isIntersecting ) { Object . entries ( observers ) . forEach ( ( [ observer , item ] ) => { triggerIntersection ( Array . from ( item . elements ) , isIntersecting , observer , item ) ; } ) ; }
Set the `isIntersecting` on all current IntersectionObserver instances
 @param isIntersecting {boolean}
Set the ` isIntersecting ` on all current IntersectionObserver instances @param isIntersecting { boolean }