redux-thunk structure and test side effects
问题 I am using redux-thunk and not sure if side effects ( showAlertError function) are structured properly. Although my jest test setup seems to be fine at first glance, I get an error: jest.fn() value must be a mock function or spy. Received: undefined` Is the showAlertError function is at the right place or it should be in the action creator or somewhere else? Also if this is the right place for it then how I can test if it's called. export const submitTeammateInvitation = (data) => { const