Skip to content

How to unit test sagas #48

Answered by mizrael
mxrnx asked this question in Q&A
Sep 24, 2021 · 3 comments · 6 replies
Discussion options

You must be logged in to vote

hi @knarka, I've made few changes to the code. I've decided to add a TState param to the TSaga constructor, as you suggested.
Unfortunately, this is a somewhat breaking change (albeit quite small), so I apologize if this is causing any issue.

I've also added a test project to the first sample, just to give an idea.

I still have to merge the changes into the development branch, I just wanted to know if this is a viable solution for you. You can find the changes here: 885bbdf

Thanks!

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mizrael
Comment options

You must be logged in to vote
6 replies
@mxrnx
Comment options

@mizrael
Comment options

@mxrnx
Comment options

@mizrael
Comment options

@mxrnx
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants