Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/motiondivision/motion
/ use-in-view.test.tsx
File
use-in-view.test.tsx
packages/framer-motion/src/utils/__tests__/use-in-view.test.tsx:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import { act, useEffect, useRef } from
"react"
2
import { render } from
"../../jest.setup"
3
import { useInView } from
"../use-in-view"
4
import { getActiveObserver } from
"./mock-intersection-observer"
Callers
nothing calls this directly
Calls
2
render
Function · 0.90
test
Function · 0.50
Tested by
no test coverage detected