MCPcopy
hub / github.com/thebuilder/react-intersection-observer / destroyIntersectionMocking

Function destroyIntersectionMocking

src/test-utils.ts:166–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164 * You can use this to opt of mocking in a specific test.
165 **/
166export function destroyIntersectionMocking() {
167 resetIntersectionMocking();
168 // @ts-expect-error
169 window.IntersectionObserver = originalIntersectionObserver;
170}
171
172function triggerIntersection(
173 elements: Element[],

Callers 1

useInView.test.tsxFile · 0.90

Calls 1

resetIntersectionMockingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…