I don't know if the APIs are changed, at the moment (Feb, 2020) runSaga returns a Task that has a toPromise() method.
So await runSaga(...).done does not make sense, you need to do
const task = runSaga(...)
const result = await task.toPromise()
expect(result).toStrictEqual({...})
anyway: thank you so much for the article 😊
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I don't know if the APIs are changed, at the moment (Feb, 2020)
runSaga
returns a Task that has atoPromise()
method.So
await runSaga(...).done
does not make sense, you need to doanyway: thank you so much for the article 😊