MCPcopy
hub / github.com/pmndrs/react-spring / testIsRef

Function testIsRef

packages/core/src/hooks/useSpring.test.tsx:462–475  ·  view source on GitHub ↗
(ref: SpringRef | null)

Source from the content-addressed store, hash-verified

460}
461
462function testIsRef(ref: SpringRef | null) {
463 const props = [
464 'add',
465 'delete',
466 'pause',
467 'resume',
468 'set',
469 'start',
470 'stop',
471 'update',
472 '_getProps',
473 ]
474 props.forEach(prop => expect(ref).toHaveProperty(prop))
475}

Callers 1

useSpring.test.tsxFile · 0.70

Calls 1

forEachMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…