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

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

@slim-hmidi

Description

@slim-hmidi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions