MCPcopy
hub / github.com/thebuilder/react-intersection-observer / useOnInView.test.tsx

File useOnInView.test.tsx

src/__tests__/useOnInView.test.tsx:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { render } from "@testing-library/react";
2import { useCallback, useEffect, useState } from "react";
3import type { IntersectionEffectOptions } from "..";
4import { intersectionMockInstance, mockAllIsIntersecting } from "../test-utils";

Callers

nothing calls this directly

Calls 2

intersectionMockInstanceFunction · 0.90
mockAllIsIntersectingFunction · 0.90

Tested by

no test coverage detected