redux-mock-store
redux-mock-store copied to clipboard
A mock store for testing Redux async action creators and middleware.
Looks like there are 118 forks and hasn't had a commit in a year. @dmitry-zaets would you be willing to allow other maintainers review PR ?
Dependabot just pushed a PR to our repo for version 1.5.4, which doesn't have an associated release, and there haven't been recent changes that I can see in the commit...
Hi, I got an error when running the test. Any help or suggestions for me? - redux-mock-store: ^1.5.4 - "@types/redux-mock-store": "^1.0.2", - "@reduxjs/toolkit": "^1.3.5", - "@testing-library/react-native": "^5.0.3", ### Error when...
adapted from the async example in the README: ```js import configureStore from "redux-mock-store"; import thunk from "redux-thunk"; const middlewares = [thunk]; // add your middlewares like `redux-thunk` const mockStore =...
With an ESM environment (`"type": "module"` in _package.json_), the default import is not what we want: ``` $ node Welcome to Node.js v16.3.0. Type ".help" for more information. > import('redux-mock-store').then(console.info)...
When `replaceReducer(someReducerFunction)` is run, nothing is set in the mock store. Also, mock stores don't actually have a reducer to begin with.
getActions method doesn't log correct actions or more than 3 actions. I am trying to test reducers where I am dispatching reducers constantly. But, getActions isn't logging actions more than...
I'm having an issue with the thunk middleware not working when I use the mock store through enzyme example: ```js const mapDispatchToProps = dispatch => ({ register: data => dispatch(register(data))...
Hi, For **CommonJS** version you need to put: ### `const configureStore = require('redux-mock-store').default;` instead of `const { configureStore } = require('redux-mock-store')`, also this: `const configureStore = require('redux-mock-store')` doesn't work. the...
I have a scenario in which a method uses Store Helper to get State. When I try to test the function using the mock store which I have created, it...