Passionate, positive-minded, Sr Front-end Eng @ Preply (Design System) / Advisor @ Plannix / ex platform team / ex team leader / Speaker / Instructor / Writer / Remote worker
Location
Lecco, Italy
Education
Bachelor's degree, Communication design - High School Diploma, Informatic Technologies
Pronouns
he/him
Work
Senior Front-end Engineer/Tech lead at Preply (Design System)
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)
runSagareturns a Task that has atoPromise()method.So
await runSaga(...).donedoes not make sense, you need to doanyway: thank you so much for the article 😊