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

Function testIsRef

packages/core/src/hooks/useTransition.test.tsx:470–483  ·  view source on GitHub ↗
(ref: SpringRef | null)

Source from the content-addressed store, hash-verified

468}
469
470function testIsRef(ref: SpringRef | null) {
471 const props = [
472 'add',
473 'delete',
474 'pause',
475 'resume',
476 'set',
477 'start',
478 'stop',
479 'update',
480 '_getProps',
481 ]
482 props.forEach(prop => expect(ref).toHaveProperty(prop))
483}

Callers 1

Calls 1

forEachMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…