I have tried to mock ref.currrent but it's still null : jest.spyOn(React, 'useRef').mockReturnValue({ current: navContainer, });.
確定! 回上一頁