You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dmitry-zaets
changed the title
Add withMiddlewares to allow override middlewares per test
Add "withMiddlewares" to allow override middlewares per test
Oct 13, 2016
Redux Thunk 2.1.0 adds the possibility to register dependencies of async action in middleware setup (reduxjs/redux#1716), which is useful for testing.
Currently, there is a way to set middlewares for all tests during initial setup, so there is no need to set up middlewares for each test.
But there is also no way to override middlewares for separate tests.
We can add method
withMiddlewares
to test methods chain, that will allow overriding existing middlewares for a single test.Usage (with expect):
The text was updated successfully, but these errors were encountered: