MCPcopy Create free account
hub / github.com/uiwjs/react-codemirror / MockIntersectionObserver

Class MockIntersectionObserver

core/src/__tests__/index.test.tsx:29–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28 // Mock observers used by CodeMirror internals in JSDOM.
29 class MockIntersectionObserver {
30 observe = jest.fn();
31 unobserve = jest.fn();
32 disconnect = jest.fn();
33 takeRecords = jest.fn(() => []);
34 }
35 class MockResizeObserver {
36 observe = jest.fn();
37 unobserve = jest.fn();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…