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

chore(deps): update dependency redux-mock-store to v1.5.5 #1552

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 9, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
redux-mock-store 1.5.4 -> 1.5.5 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

arnaudbenard/redux-mock-store (redux-mock-store)

v1.5.5: - Deprecation

Compare 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:

it('should add a todo', () => {
  const store = makeStore() // a user defined reusable store factory

  store.dispatch(addTodo('Use Redux'))

  expect(selectTodos(store.getState())).toEqual([
    { text: 'Use Redux', completed: false }
  ])
})

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 to legacy_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.

- import configureStore from "redux-mock-store"
+ import { legacy_configureStore as configureStore } from "redux-mock-store"

// or

- import { configureStore } from "redux-mock-store"
+ import { legacy_configureStore as configureStore } from "redux-mock-store"

Full Changelog: reduxjs/redux-mock-store@v1.5.4...v1.5.5


Configuration

📅 Schedule: Branch creation - "* 0-3 * * 1" in timezone America/New_York, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from a team as a code owner December 9, 2024 05:02
Copy link

codecov bot commented Dec 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.35%. Comparing base (ba896a3) to head (716460e).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1552   +/-   ##
=======================================
  Coverage   93.35%   93.35%           
=======================================
  Files        1109     1109           
  Lines       22103    22103           
  Branches     4682     4779   +97     
=======================================
  Hits        20635    20635           
+ Misses       1403     1397    -6     
- Partials       65       71    +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@renovate renovate bot force-pushed the renovate/redux-mock-store-1.x-lockfile branch 3 times, most recently from 8438225 to 4c2a181 Compare December 13, 2024 18:21
@renovate renovate bot force-pushed the renovate/redux-mock-store-1.x-lockfile branch 3 times, most recently from 36c508f to fcae5d1 Compare December 21, 2024 14:23
@renovate renovate bot force-pushed the renovate/redux-mock-store-1.x-lockfile branch 4 times, most recently from d2ff0b2 to ef8172e Compare January 13, 2025 16:47
@renovate renovate bot force-pushed the renovate/redux-mock-store-1.x-lockfile branch 6 times, most recently from 083b73a to 0f32d3c Compare January 22, 2025 16:43
@renovate renovate bot force-pushed the renovate/redux-mock-store-1.x-lockfile branch 5 times, most recently from 3cea355 to 3bb27f0 Compare January 30, 2025 14:17
@renovate renovate bot force-pushed the renovate/redux-mock-store-1.x-lockfile branch 3 times, most recently from e3f6559 to 4839e2f Compare February 11, 2025 19:35
@renovate renovate bot force-pushed the renovate/redux-mock-store-1.x-lockfile branch 3 times, most recently from 9697b97 to 154fc70 Compare February 18, 2025 15:39
@renovate renovate bot force-pushed the renovate/redux-mock-store-1.x-lockfile branch from 154fc70 to 056c969 Compare February 20, 2025 12:00
@renovate renovate bot force-pushed the renovate/redux-mock-store-1.x-lockfile branch 3 times, most recently from b29c4c2 to 5e7aab9 Compare February 21, 2025 16:51
@renovate renovate bot force-pushed the renovate/redux-mock-store-1.x-lockfile branch from 5e7aab9 to 716460e Compare February 21, 2025 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants