chore(deps): update dependency redux-mock-store to v1.5.5 #1115
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.5.4
->1.5.5
Release Notes
arnaudbenard/redux-mock-store (redux-mock-store)
v1.5.5
: - DeprecationCompare Source
This patch release deprecates the
configureStore
method, as this package does not align with the Redux team's recommended testing practices. Instead, we recommend testing with a real store.Testing with a mock store leads to potentially confusing behaviour, such as state not updating when actions are dispatched. Additionally, it's a lot less useful to assert on the actions dispatched rather than the observable state changes.
You can test the entire combination of action creators, reducers, and selectors in a single test, for example:
This avoids common pitfalls of testing each of these in isolation, such as mocked state shape becoming out of sync with the actual application.
legacy_configureStore
We recognise that for many codebases, migration will be a major effort that some may not be able to allocate time for.
The
@deprecated
tag is just a visual strikethrough, but some tools will add extra warnings when it is used.We now have a
legacy_configureStore
export (similar tolegacy_createStore
in Redux core) which is the same function but without this tag. You can change any imports to use this if the deprecation notice presents significant issues for you.Full Changelog: reduxjs/redux-mock-store@v1.5.4...v1.5.5
Configuration
📅 Schedule: Branch creation - "before 4am on Monday" in timezone America/New_York, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.