Open jeffbski opened 7 years ago
I'm thinking this will just live in its own package maybe named redux-logic-test
I agree with most of it. I still wonder how you will do for all cases. I can test it when you'll be ready, please tell me when you got a branch.
ok, I'll see if there are any other thoughts or comments and then I'll whip it up and let you give it a spin.
I just published redux-logic-test, let me know if you have any questions or run into any problems using it.
Thanks for releasing it that fast, I look into this as soon as I have time.
You are welcome. Let me know if you run into any questions on use.
I'm thinking it might be nice to create a separate helper project which will help make it easy to create mock stores for integration level tests. It would basically let you setup your test store in one line of code hooking up as much or as little as you want to specify.
Then it provides a few nice methods to facilitate testing like knowing when the logic is complete and then being able to see an array list of actions that were dispatched.
Let me know what you think. I want it to be simple but yet including the right things to make testing easy.
I didn't require a reducer so I didn't need to create one, but if you test needs that you can supply one.
I have a gist of the API here