redux-saga-test-engine
redux-saga-test-engine copied to clipboard
Proposal Allow mapping to return function when not wrapped with `stub`
https://github.com/timbuckley/redux-saga-test-engine/commit/b8d0a95fe25fa960f109b92dde7cc47e02c55a53 introduced a breaking change where mappings that return functions will now return the result of those functions.
It appears the intent was only to support dynamic return values using stub
.
This PR preserves the behavior of stub
but eliminates calling functions that are specified as return values in mappings.
Note, this is a breaking change to 2.1.0 and 3.0.0, but it restores broken behavior from 2.0.3 which I believe was more correct. Would love feedback!