Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Using testing-library wrapper with redux to test components #851

Open
slim-hmidi opened this issue Nov 16, 2020 · 0 comments
Open

Using testing-library wrapper with redux to test components #851

slim-hmidi opened this issue Nov 16, 2020 · 0 comments

Comments

@slim-hmidi
Copy link

Hi,
I'm trying to write tests for my projects and I read a lot of your articles and I find many interesting ones such as: Stop mocking fetch where you used msw.
But I'm actually confused:
I have some containers components using redux. Do I need to wrap the components and pass the state each time I want to test them like in this example Writing Tests or I use msw handlers and tests the behavior of the app without concentrating a lot with what happens inside the redux store.

I don't know if the different steps occured inside the redux store considered as implementation details and I have to not care a lot about them or not?

I know that you don't use the state management libraries but I just want to know your opinion about that?
Thanks a lot.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant