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

redux-mock-store throws error after updating jest to latest versions #185

Open
shabeerwebdev opened this issue May 9, 2024 · 0 comments

Comments

@shabeerwebdev
Copy link

package.json
"@testing-library/dom": "10.1.0",
"@testing-library/jest-dom": "6.4.5",
"@testing-library/react": "15.0.7",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/user-event": "14.5.2",
"redux-mock-store": "^1.5.4",

Error
● Test suite failed to run
TypeError: middleware is not a function

  10 |
  11 | const mockStore = configureMockStore([thunk]);
> 12 | const store = mockStore({
     |                           ^
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

No branches or pull requests

1 participant