測試 useHistory, useRouteMatch. https://stackoverflow.com/questions/58392815/how-to-mock-usehistory-hook-in-jest. 1. jest.mock('react-router-dom', ...
確定! 回上一頁