MCPcopy
hub / github.com/coder/mux / cancelAnimationFrameMock

Function cancelAnimationFrameMock

src/browser/hooks/useSmoothStreamingText.test.tsx:36–38  ·  view source on GitHub ↗
(handle)

Source from the content-addressed store, hash-verified

34 };
35
36 const cancelAnimationFrameMock: typeof cancelAnimationFrame = (handle) => {
37 rafCallbacks.delete(handle);
38 };
39
40 globalThis.requestAnimationFrame = requestAnimationFrameMock;
41 globalThis.cancelAnimationFrame = cancelAnimationFrameMock;

Callers

nothing calls this directly

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected