(isIntersecting: boolean | number)
| 233 | * @param isIntersecting {boolean | number} |
| 234 | */ |
| 235 | export function mockAllIsIntersecting(isIntersecting: boolean | number) { |
| 236 | warnOnMissingSetup(); |
| 237 | for (const [observer, item] of observers) { |
| 238 | triggerIntersection( |
| 239 | Array.from(item.elements), |
| 240 | isIntersecting, |
| 241 | observer, |
| 242 | item, |
| 243 | ); |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | /** |
| 248 | * Set the `isIntersecting` for the IntersectionObserver of a specific element. |
no test coverage detected
searching dependent graphs…