Typescript에서 dispatch랑 selector를 테스트 할 때 as jesk.Mock 을 붙이면 된다
그렇지 않으면 .mockImplementation이 타입이 없다고 계속 오류가 났었음
(useDispatch as jest.Mock).mockImplementation (() => dispatch);
(useSelector as jest.Mock).mockImplementation((selector) => selector({
// sth..
}));