Document a simpler way to test async action creators · Issue #1716 · reactjs/redux · GitHub

  • withExtraArgument ({ api, // can also pass other modules you need in ACs and want to mock in tests })) ); }
  • Please note that GitHub will soon be dropping support for Internet Explorer 10.
  • In tests, you should be able to call them directly with spies and pass your mocks as the third argument.

Read the full article, click here.


@dan_abramov: “Feedback wanted: a simpler way to test async action creators”


redux – Predictable state container for JavaScript apps


Document a simpler way to test async action creators · Issue #1716 · reactjs/redux · GitHub