Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/MSSDK-1748: Remove redux-mock-store and redux-thunk packages #425

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

m4tewoosh
Copy link
Collaborator

@m4tewoosh m4tewoosh commented Oct 17, 2024

Description

Both redux-mock-store and redux-thunk packages are used only in the unit tests. However, what they offer is already provided by the @reduxjs/toolkit package that we use.

Updates

Used configureStore from @reduxjs/toolkit instead of the one from redux-mock-store and removed both packages

@m4tewoosh m4tewoosh marked this pull request as ready for review October 17, 2024 15:59
Copy link
Collaborator

@Saddage Saddage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO it is better to use renderWithProviders from src/util/testHelpers.tsx. you can make the change only once there and then reuse it across the tests.

Also, please find the usages of <Provider in tests and also replace them with the renderWithProviders. This will improve our testing codebase. Thanks!

Copy link

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

Successfully merging this pull request may close these issues.

2 participants