MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / intersectionObserverMock

Function intersectionObserverMock

apps/web/jest.setup.js:6–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4if (typeof window !== 'undefined') {
5 window.fetch = jest.fn().mockResolvedValue({});
6 const intersectionObserverMock = () => ({
7 observe: () => null,
8 unobserve: () => null,
9 disconnect: () => null,
10 });
11 window.IntersectionObserver = jest
12 .fn()
13 .mockImplementation(intersectionObserverMock);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected