A better approach for testing your Redux code
TL;DR
When testing Redux, here are a few guidelines:
Vanilla Redux
The smallest standalone unit in Redux is the entire state slice. Unit tests should interact with it as a whole.
There is no point in testing reducers, action creators and selectors ...
blog.hbarcelos.dev20 min read
Slim
Senior Software Engineer
Henrique Barcelos Very interesting and amazing article, you can update it using
createAsyncThunkin v1.3.2 for async actions. But I have a simple question here: why are you adding the error as selector in the code and is it useful to do that?