-
Notifications
You must be signed in to change notification settings - Fork 7
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
base: develop
Are you sure you want to change the base?
feat/MSSDK-1748: Remove redux-mock-store and redux-thunk packages #425
Conversation
There was a problem hiding this 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!
…tionHandler to TS
…tionHandler to TS
|
@m4tewoosh , please rename the PR and the |
Description
Both
redux-mock-store
andredux-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 fromredux-mock-store
and removed both packages