I'm relatively new to react testing, but currently trying to use a few examples I found on the net to mock a React hook - specifically useRef.
The code below is what I found in a couple of accepted examples, but I cant understand why the following error is being generated. It 'feels' as though I'm not mocking what I think I am (i.e. useRef) but I'm struggling to understand why.
Can anyone help me understand what I'm doing wrong? Thanks in advance.