tp / tsaga

Typesafe and lightweight way to write Redux-connected functions with asynchronous side-effects that are easily testable.
Apache License 2.0
8 stars 1 forks source link

Add support for testing bound effects #50

Closed HenriBeck closed 5 years ago

HenriBeck commented 5 years ago

Currently, there is no way of testing your bound functions, so I created a similar interface for it as the saga test.

The only difference is that we are calling and expecting a return value instead of just dispatching an action. Asserting the return value is currently optional though this might not want we want.

tp commented 5 years ago

@HenriBeck Do you still use these in app? I was hoping with the switch to TS 3.4 we could drop them entirely, just kept them around for legacy reasons.

I mean, I wouldn't want anyone writing the anew & then write tests for them unless they must do so due to being stuck on 3.3. (as OMS is).

Will have a look at the changes later today!