()
| 25 | let ref; |
| 26 | |
| 27 | function Comp() { |
| 28 | ref = useRef({}); |
| 29 | useImperativeHandle(ref, () => ({ test: () => 'test' }), []); |
| 30 | return <p>Test</p>; |
| 31 | } |
| 32 | |
| 33 | render(<Comp />, scratch); |
| 34 | expect(ref.current).to.have.property('test'); |
nothing calls this directly
no test coverage detected
searching dependent graphs…